diff --git a/.htaccess b/.htaccess index d6bc739..bc501ad 100644 --- a/.htaccess +++ b/.htaccess @@ -3,4 +3,13 @@ #RewriteCond %{REQUEST_FILENAME} !-d #RewriteRule ^(.*)$ index.php [QSA,L] -# TODO - https://github.com/phanan/htaccess#set-expires-headers \ No newline at end of file + + ExpiresActive on + ExpiresDefault "access plus 1 week" + ExpiresByType text/html "access plus 0 seconds" + + + + Header unset ETag + +FileETag None \ No newline at end of file diff --git a/one.php b/one.php index ef1c571..7749f0e 100644 --- a/one.php +++ b/one.php @@ -6,6 +6,8 @@ $config = require 'config.php'; error_reporting(0); header('Content-type: text/plain'); +header("Cache-Control: no-cache, must-revalidate"); +header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); try { $pdo = new MyPDO('sqlite:' . __DIR__ . '/' . $config['database']);