Skip to content

Commit

Permalink
Add no-store to Cache-Control to ensure back button does not reveal e…
Browse files Browse the repository at this point in the history
…lements from previous session in an unclosed tab
  • Loading branch information
collectiveaccess committed Oct 4, 2021
1 parent 335159c commit be6d464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Expand Up @@ -108,7 +108,7 @@
if (caDeviceIsMobile()) { AssetLoadManager::register('mobile'); }

// Prevent caching
$resp->addHeader("Cache-Control", "no-cache, must-revalidate");
$resp->addHeader("Cache-Control", "no-cache, no-store, must-revalidate");
$resp->addHeader("Expires", "Mon, 26 Jul 1997 05:00:00 GMT");

// Security headers
Expand Down

0 comments on commit be6d464

Please sign in to comment.