Skip to content

Commit

Permalink
varnish: Allow caching mobile page
Browse files Browse the repository at this point in the history
  • Loading branch information
paladox authored Dec 23, 2024
1 parent f85f6dd commit abace64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/varnish/templates/default.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ sub vcl_recv {
# Defines the uniqueness of a request
sub vcl_hash {
# FIXME: try if we can make this ^/(wiki/)? only?
if ((req.http.Host != "miraheze.org" && req.http.Host != "wikitide.org" && req.url ~ "^/(wiki/)?") || req.url ~ "^/w/load.php") {
if (req.url ~ "^/(wiki/)?" || req.url ~ "^/w/load.php") {
hash_data(req.http.X-Subdomain);
}
}
Expand Down

0 comments on commit abace64

Please sign in to comment.