aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-07-11 12:44:49 +0100
committerMatthew Somerville <matthew@mysociety.org>2019-07-11 12:44:52 +0100
commit46726834ff02a05587a196ae13a65ecd9492b47c (patch)
tree2d348fb591110c0324f755db093c6556f5b69aee
parentede03130b3b1e225cad2061c58f93a9eb85c203d (diff)
Ignore cache-busting keyword on appcache.
`params` changed in Catalyst 5.90116 to always include a sole keyword parameter (ie. with no equals sign) as a key with an undefined value; the changelog entry is only "improved test cases for query keywork".
-rw-r--r--perllib/FixMyStreet/App/Controller/Offline.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Offline.pm b/perllib/FixMyStreet/App/Controller/Offline.pm
index d50d0d03f..f5d895318 100644
--- a/perllib/FixMyStreet/App/Controller/Offline.pm
+++ b/perllib/FixMyStreet/App/Controller/Offline.pm
@@ -34,7 +34,7 @@ sub manifest : Path("/offline/appcache.manifest") {
sub appcache : Path("/offline/appcache") {
my ($self, $c) = @_;
- $c->detach('/page_error_404_not_found', []) if keys %{$c->req->params};
+ $c->detach('/page_error_404_not_found', []) if keys %{$c->req->params} && !$c->req->query_keywords;
unless ($c->forward('have_appcache')) {
$c->response->status(404);
$c->response->body('NOT FOUND');