Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update fastcgi_cache_key #223

Merged
merged 1 commit into from
Aug 6, 2015
Merged

Update fastcgi_cache_key #223

merged 1 commit into from
Aug 6, 2015

Conversation

tempo22
Copy link
Contributor

@tempo22 tempo22 commented Aug 6, 2015

I had issues while using the microcache_fcgi_auth.conf.

I noticed that a recent commit (#169) modified the microcache fastcgi_cache_key for anonymous but not for auth.

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).
perusio added a commit that referenced this pull request Aug 6, 2015
* Update fastcgi_cache_key for auth cache.
@perusio perusio merged commit 86799cb into perusio:D7 Aug 6, 2015
@perusio
Copy link
Owner

perusio commented Aug 6, 2015

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants