Force cache refresh

Ole Laursen olau at iola.dk
Sat Jun 19 21:23:10 MSD 2010


Igor Sysoev <igor at ...> writes:
> A response to a bypassed request is cached only if you set
> some headers by backend:
> 
> X-Accel-Expires: 30
> Cache-Control: max-age=30
> Expires with +30s time.
> 
> proxy_cache_valid does not work in this case.

Ah, OK, I'll try inserting a generic check for the cache refresh header
in the backend and add an X-Accel-Expires header. Is there any
particular reason why proxy_cache_valid isn't taken into account?


Ole




More information about the nginx mailing list