Created
December 21, 2015 11:18
-
-
Save kakerukaeru/4917cd17b4f068b8faff 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.url ~ "^/hogehoge") { | |
| set req.backend_hint = hogehoge; | |
| return (pass); // ← remove code | |
| } | |
| ... | |
| } | |
| sub vcl_backend_response { | |
| ... | |
| if (bereq.backend == hogehoge) { // ← add code | |
| set beresp.ttl = 3600s; // ← add code | |
| } // ← add code | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment