Skip to content
Browse files

Cache 1-click shabbat a little more aggressively.

Cache any API (query string cfg=) queries, e.g. on /converter/ or /hebcal/
  • Loading branch information...
1 parent 3afe2a5 commit 8a1d58bde70f7dbc4525f84c85c4d74c7cb6fcdd Michael J. Radwin committed Feb 28, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 etc/varnish/default.vcl
View
2 etc/varnish/default.vcl
@@ -16,7 +16,7 @@ sub vcl_recv {
unset req.http.cookie;
}
- if (req.url ~ "^/shabbat/.*cfg=") {
+ if (req.url ~ "^/shabbat/\?" || req.url ~ "\?.*cfg=") {
unset req.http.cookie;
}

0 comments on commit 8a1d58b

Please sign in to comment.
Something went wrong with that request. Please try again.