Nginx + PHP-FPM ignores no-cache headers
Posted
by
Eric Winchell
on Server Fault
See other posts from Server Fault
or by Eric Winchell
Published on 2010-09-21T20:40:18Z
Indexed on
2012/03/23
11:32 UTC
Read the original article
Hit count: 249
nginx
I'm using the following header on a php page.
// Prevent page caching.
header('Expires: Tue, 20 Oct 1981 05:00:00 GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', FALSE);
header('Pragma: no-cache');
I'm also using a rand=999999999 (with a real random number) in the URLs.
But pages are still being cached. Reload works, but first load is cached. Anyone know where I can change this?
© Server Fault or respective owner