Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita05c1ae

Browse files
committed
Include the assets hostname when purging from CDN
Purge both thewww.gov.uk domain and the assets domain from theCDN at the same time.
1 parentf44435e commita05c1ae

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
forpathinargs:
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)

[8]ページ先頭

©2009-2025 Movatter.jp