Skip to content

Conversation

@pjv
Copy link
Contributor

@pjv pjv commented Jan 21, 2015

fastcgi cache should only cache pages with certain http response codes instead of "any" which can sometimes cache transient 5XX error pages. this patch changes the caching behavior so that it only caches 200, 301, 302, and 404.

see http://community.rtcamp.com/t/fascgi-cache-caching-error-pages/3847

pjv added 2 commits January 19, 2015 08:16
to keep fastcgi cache from mistakenly caching (and then serving) 5XX error pages and other things it shouldn't, only cache pages with a 200 response code.
@rahul286
Copy link
Member

@gau1991 merge this in current EE2 as well as future EE 3 release with similar changes.

Please share EE3 changes commit link here, so I can review it.

gau1991 pushed a commit that referenced this pull request Jan 21, 2015
Cache only certain response codes
@gau1991 gau1991 merged commit 8c283b1 into EasyEngine:master Jan 21, 2015
@gau1991
Copy link
Contributor

gau1991 commented Jan 21, 2015

@rahul286
Added same commit to EE 3.0: debee26

@pjv pjv deleted the cache-only-200s branch January 22, 2015 16:18
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.

3 participants