set max age to 12 hours

This commit is contained in:
Михаил Капелько
2025-11-12 06:24:10 +03:00
parent e5cbba81c0
commit 5c1892f0e4

View File

@@ -26,7 +26,6 @@ server {
root /var/www/html; root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html; index index.html;
server_name _; server_name _;
@@ -36,6 +35,7 @@ server {
# as directory, then fall back to displaying a 404. # as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404; try_files $uri $uri/ =404;
add_header "Access-Control-Allow-Origin" "*"; add_header "Access-Control-Allow-Origin" "*";
add_header "Cache-Control" "max-age=43200";
# Remove CORS. # Remove CORS.
if ($request_method = "OPTIONS") { if ($request_method = "OPTIONS") {
add_header "Access-Control-Allow-Origin" "*"; add_header "Access-Control-Allow-Origin" "*";