remove cache example (cache statics only)

This commit is contained in:
yggverse 2025-08-21 15:34:45 +03:00
parent def8f72ece
commit 3b6879b52d

View file

@ -49,9 +49,15 @@ WantedBy=multi-user.target
server { server {
listen 80; listen 80;
location ~* \.(jpg|jpeg|png|gif|ico|svg|css|js) {
expires 30d;
add_header Cache-Control "public, max-age=2592000";
proxy_pass http://127.0.0.1:8000;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
}
location / { location / {
# expires 15m;
# add_header Cache-Control "public, max-age=900";
proxy_pass http://127.0.0.1:8000; proxy_pass http://127.0.0.1:8000;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;