Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcusramberg/a6d869acf913290a08a50462a146a190 to your computer and use it in GitHub Desktop.
Save marcusramberg/a6d869acf913290a08a50462a146a190 to your computer and use it in GitHub Desktop.
diff --git a/ansible/roles/legacy-lb/templates/etc/varnish/default.vcl.varnish4.j2 b/ansible/roles/legacy-lb/templates/etc/varnish/default.vcl.varnish4.j2
index 75e054be..cd66b934 100644
--- a/ansible/roles/legacy-lb/templates/etc/varnish/default.vcl.varnish4.j2
+++ b/ansible/roles/legacy-lb/templates/etc/varnish/default.vcl.varnish4.j2
@@ -226,7 +226,7 @@ sub vcl_recv {
if (req.url ~ "^/(club|klubb|klub|artikler|artiklar|kampanje|kampanj|kampagne|kampania)"
|| req.url ~ "^/(asset|cdn|component|layouts|services)/"
|| req.url ~ "^/(afbudsrejser|sistaminuten)(/|\.json|)(\?.+)?$"
- || req.url ~ "^/(charter|charterredirect|feature|hotel|services|status/[0-9]+$)"
+ || req.url ~ "^/($|charter|charterredirect|feature|hotel|services|status/[0-9]+$)"
|| req.url ~ "^/guide/(lufthavn|flyplass|flygplats)"
|| req.url ~ "^/(feriehus|feriehuse|semesterhus)"
|| (req.http.host ~ "reisegiganten.no" && req.url ~ "^/$")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment