We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abebbae commit 499855dCopy full SHA for 499855d
tools/purgehook/purgehook.py
@@ -47,6 +47,10 @@
47
curs.execute("SELECT varnish_purge('^/' || %(u)s || '$')", {
48
'u': l.strip(),
49
})
50
+
51
+ # If it's a CSS file, we also need to purge /dyncss/
52
+ if l.endswith('.css'):
53
+ curs.execute("SELECT varnish_purge('^/dyncss/')")
54
elif l.startswith('data/'):
55
# Data files map to xkeys with the same name as the file prefixed by data_
56
curs.execute("SELECT varnish_purge_xkey(%(key)s)", {
0 commit comments