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 26ec51c commit 93906b9Copy full SHA for 93906b9
cdn.py
@@ -11,7 +11,7 @@ def fastly_purge(*args):
11
hostnames_to_purge = ['www.gov.uk', 'assets.digital.cabinet-office.gov.uk']
12
for govuk_path in args:
13
for hostname in hostnames_to_purge:
14
- run("curl -s -X PURGE -H 'Host: {0}' {1}{2}".format(hostname, govuk_fastly, govuk_path.strip()))
+ run("curl -s -X PURGE -H 'Host: {0}' {1}{2} | grep 'ok'".format(hostname, govuk_fastly, govuk_path.strip()))
15
16
@task
17
def purge_all(*args):
0 commit comments