Skip to content

Commit a05c1ae

Browse files
committed
Include the assets hostname when purging from CDN
Purge both the www.gov.uk domain and the assets domain from the CDN at the same time.
1 parent f44435e commit a05c1ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cdn.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ def fastly_purge(*args):
88
"Purge items from Fastly, eg \"/one,/two,/three\""
99
for path in args:
1010
run("curl -s -X PURGE -H 'Host: www.gov.uk' http://www-gov-uk.map.fastly.net%s" % path.strip())
11+
run("curl -s -X PURGE -H 'Host: assets.digital.cabinet-office.gov.uk' http://www-gov-uk.map.fastly.net%s" % path.strip())

0 commit comments

Comments
 (0)