From 79be2f204f61aef43e205f7bebfed969f052df1e Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Sun, 11 Feb 2024 21:53:22 +0100 Subject: [PATCH] fix static cache for "images" --- conf/nginx.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index ab5df41..399fe9a 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -46,14 +46,14 @@ location __PATH__/ { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } - # cache medias - location ~* (/images/|/photo/) { + # cache users medias + location /photo/ { # 604800 = 1 week more_set_headers "Cache-Control: private, immutable, max-age=604800"; } # cache static files - location /static/ { + location ~* (/images/|/static/) { # 300 = 5 minutes more_set_headers "Cache-control: public, max-age=300"; }