Prevent cacheing when using nginx reverse proxy cache

Bogdan Cosmin asked:

is there a way to prevent cacheing for some pages when using nginx reverse proxy cache. like sending some king of header from php?

my version of nginx is 0.7.64

thanks in advance:)

My answer:

You mean something like…

Cache-Control: no-cache

The relevant section of RFC 2616 makes for interesting reading if you’re wanting to control caching.

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.