Skip to content

Commit 0acb9e5

Browse files
committed
Update microcache_fcgi.conf
See recommendations on: http://wiki.nginx.org/HttpFastcgiModule#fastcgi_cache_key fastcgi_cache_key "$scheme$request_method$host$request_uri"; Be advised that a HEAD request can cause an empty response to be cached & later be distributed to GET requests, avoid this by having $request_method in the cache key. Including the $scheme for the same reason may be beneficial to avoid serving up pages with insecure content to HTTPS visitors (or vice-versa).
1 parent 35ee49f commit 0acb9e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/drupal/microcache_fcgi.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
## The cache zone referenced.
77
fastcgi_cache microcache;
88
## The cache key.
9-
fastcgi_cache_key $scheme$host$request_uri;
9+
fastcgi_cache_key $scheme$request_method$host$request_uri;
1010

1111
## For 200 and 301 make the cache valid for 1s seconds.
1212
fastcgi_cache_valid 200 301 1s;

0 commit comments

Comments
 (0)