Skip to content

Commit 00bffd1

Browse files
committed
chore: reduce proxy_cache max_size to 1m (single ~30KB JS file)
1 parent b65b2fc commit 00bffd1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config/nginx.conf.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ http {
1010
server_tokens off;
1111

1212
# Proxy cache using /dev/shm (tmpfs, survives dyno restarts)
13-
proxy_cache_path /dev/shm/jscache levels=1:2 keys_zone=jscache:1m inactive=30d use_temp_path=off max_size=10m;
13+
proxy_cache_path /dev/shm/jscache levels=1:2 keys_zone=jscache:1m inactive=30d use_temp_path=off max_size=1m;
1414

1515
# Security headers (set at http level to apply to all responses)
1616
add_header X-Frame-Options "SAMEORIGIN" always;

0 commit comments

Comments
 (0)