diff --git a/.htaccess b/.htaccess index 372c37d..cb9386a 100644 --- a/.htaccess +++ b/.htaccess @@ -214,9 +214,14 @@ ServerSignature Off # Cache-Control headers - + # Images only — long cache is safe since filenames don't change + Header set Cache-Control "max-age=31536000, public" + # CSS and JS — short cache + must-revalidate so edits propagate within 1 hour + + Header set Cache-Control "max-age=3600, public, must-revalidate" + Header set Cache-Control "max-age=600, private, must-revalidate" diff --git a/403.php b/403.php index 61adc06..be8f45b 100644 --- a/403.php +++ b/403.php @@ -71,7 +71,7 @@ http_response_code(403); opacity: 0.8; } - + diff --git a/404.php b/404.php index 8aa364f..2243410 100644 --- a/404.php +++ b/404.php @@ -17,7 +17,7 @@ $page_description = "The page you're looking for doesn't exist. Explore our data - + - + diff --git a/about.php b/about.php index 5ac94d6..9f1cddb 100644 --- a/about.php +++ b/about.php @@ -44,7 +44,7 @@ $breadcrumbs = [ - +