Fix: Update search to escape regex chars & fix CSS caching
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

- Fixed search to properly escape special characters (parentheses, etc)
- Changed nginx to not cache CSS/JS files aggressively
- Updated image tags to v1.1.0 with Always pull policy
- Images cache only 7 days instead of 1 year for CSS/JS
This commit is contained in:
dvirlabs 2026-03-25 14:08:45 +02:00
parent 476089ecc6
commit 4a1635a8b9
2 changed files with 15 additions and 8 deletions

View File

@ -37,9 +37,16 @@ data:
proxy_set_header X-Forwarded-Proto $scheme;
}
# Cache static assets
location ~* \.(jpg|jpeg|png|gif|ico|css|js|svg)$ {
expires 1y;
add_header Cache-Control "public, immutable";
# No cache for CSS and JS to allow quick updates
location ~* \.(css|js)$ {
add_header Cache-Control "no-cache, no-store, must-revalidate";
add_header Pragma "no-cache";
add_header Expires "0";
}
# Cache images only
location ~* \.(jpg|jpeg|png|gif|ico|svg)$ {
expires 7d;
add_header Cache-Control "public, max-age=604800";
}
}

View File

@ -4,8 +4,8 @@ replicaCount: 1
backend:
image:
repository: harbor.dvirlabs.com/my-apps/oramap-backend
tag: "latest"
pullPolicy: IfNotPresent
tag: "v1.1.0"
pullPolicy: Always
containerPort: 3000
replicaCount: 1
resources:
@ -20,8 +20,8 @@ backend:
frontend:
image:
repository: harbor.dvirlabs.com/my-apps/oramap-frontend
tag: "latest"
pullPolicy: IfNotPresent
tag: "v1.1.0"
pullPolicy: Always
containerPort: 80
replicaCount: 1
resources: