Skip to content

Commit 8c283b1

Browse files
author
Gaurav Ashtikar
committed
Merge pull request #393 from pjv/cache-only-200s
Cache only certain response codes
2 parents 307a8b3 + fc4fcf7 commit 8c283b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/nginx/conf.d/fastcgi.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
fastcgi_cache_path /var/run/nginx-cache levels=1:2 keys_zone=WORDPRESS:50m inactive=60m;
44
fastcgi_cache_key "$scheme$request_method$host$request_uri";
55
fastcgi_cache_use_stale error timeout invalid_header updating http_500 http_503;
6-
fastcgi_cache_valid any 1h;
6+
fastcgi_cache_valid 200 301 302 404 1h;
77

88
fastcgi_buffers 16 16k;
99
fastcgi_buffer_size 32k;

0 commit comments

Comments
 (0)