Skip to content

Commit 938e6b6

Browse files
authored
Merge pull request #25 from flownative/bugfix/stale-404-cache
Fix caching for pages not found (404 & 410)
2 parents a8755e9 + a15afb5 commit 938e6b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

root-files/opt/flownative/lib/nginx.sh

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ nginx_config_fastcgi_cache() {
6060
fastcgi_cache_methods GET HEAD;
6161
fastcgi_cache_key \$request_method\$scheme\$host\$request_uri;
6262
fastcgi_cache_valid 200 301 302 ${NGINX_CACHE_DEFAULT_LIFETIME};
63+
fastcgi_cache_valid 404 410 30s;
6364
fastcgi_cache_use_stale ${NGINX_CACHE_USE_STALE_OPTIONS};
6465
fastcgi_cache_background_update ${NGINX_CACHE_BACKGROUND_UPDATE};
6566

0 commit comments

Comments
 (0)