Created
February 20, 2013 17:52
-
-
Save KristianLyng/4997502 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sub vcl_recv { | |
| if (req.restarts == 0) { | |
| set req.http.x-magic = "0"; | |
| } | |
| if (req.http.x-magic == "1") { | |
| set req.hash_always_miss = true; | |
| } | |
| } | |
| sub vcl_deliver { | |
| if (resp.http.content-length == "0" && req.http.x-magic == "0") { | |
| set req.http.x-magic = 1; | |
| return (restart); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment