better caching, fixed cumulative layout shifts!

This commit is contained in:
ari melody 2024-05-17 13:23:12 +01:00
parent a37ca06241
commit 2339edcc39
Signed by: ari
GPG key ID: CF99829C92678188
2 changed files with 14 additions and 4 deletions

View file

@ -10,7 +10,12 @@ server {
client_max_body_size 0;
add_header Cache-Control "max-age=14400";
gzip on;
gzip_types text/plain application/xml text/css application/javascript;
gzip_proxied no-cache no-store private expired auth;
gzip_min_length 1000;
add_header Cache-Control "max-age=2628000";
server_tokens off;
@ -18,6 +23,10 @@ server {
try_files $uri $uri/ $uri.html =404;
rewrite ^/music/(.*)$ https://mellodoot.com/music/$1 last;
}
location ~* /img/buttons/.*.(png|ico|gif|jpg|jpeg)$ {
add_header Cache-Control "max-age=31536000";
}
location = /give_me_money {
return 301 https://smokepowered.com;