aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2020-10-09 09:57:24 +0100
committerStruan Donald <struan@exo.org.uk>2020-10-09 09:57:24 +0100
commitfc4071d089a61de05bbc88dbd8849fa92fa4b72e (patch)
tree8cda5b227853c9cb595b7f987e3d9d3ee3c510a9 /t/app/controller
parent2d87d6bf7c7fa4eae0e098586a0efe04c5d866fe (diff)
do not cache the service worker
As the contents of the service worker vary depending on if the user is logged in don't cache it.
Diffstat (limited to 't/app/controller')
-rw-r--r--t/app/controller/offline.t1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/app/controller/offline.t b/t/app/controller/offline.t
index 876475264..d48af676f 100644
--- a/t/app/controller/offline.t
+++ b/t/app/controller/offline.t
@@ -54,6 +54,7 @@ FixMyStreet::override_config {
subtest 'service worker' => sub {
$mech->get_ok('/service-worker.js');
+ is $mech->res->header('Cache-Control'), 'max-age=0', 'service worker is not cached';
$mech->content_contains('translation_strings');
$mech->content_contains('offline/fallback');
};