Cache WebP files for 1 year too

This commit is contained in:
Danny van Kooten 2024-06-19 10:11:51 +02:00 committed by GitHub
parent 489ae1b51a
commit 89de38fd1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,7 +9,7 @@ location ~* \.(?:rss|atom)$ {
} }
# Caches images, icons, video, audio, HTC, etc. # Caches images, icons, video, audio, HTC, etc.
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|mp4|ogg|ogv|webm|htc)$ { location ~* \.(?:jpg|jpeg|gif|png|webp|ico|cur|gz|svg|mp4|ogg|ogv|webm|htc)$ {
expires 1y; expires 1y;
access_log off; access_log off;
} }
@ -39,4 +39,4 @@ location = /robots.txt {
try_files $uri $uri/ /index.php?$args; try_files $uri $uri/ /index.php?$args;
access_log off; access_log off;
log_not_found off; log_not_found off;
} }