Skip to content

Commit

Permalink
Added cache control headers
Browse files Browse the repository at this point in the history
  • Loading branch information
andr11b committed Feb 11, 2024
1 parent 42ca382 commit 21e278c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions system/framework.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@
// Response
$response = new Response();
$response->addHeader('Content-Type: text/html; charset=utf-8');
header('Expires: Thu, 19 Nov 1981 08:52:00 GMT', true);
header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0', true);
header('Pragma: no-cache', true);
$response->setCompression($config->get('config_compression'));
$registry->set('response', $response);

Expand Down

0 comments on commit 21e278c

Please sign in to comment.