Nginx + PHP-FPM ignores no-cache headersExpires directive returned in the ngix server response...
Did the UK lift the requirement for registering SIM cards?
I found an audio circuit and I built it just fine, but I find it a bit too quiet. How do I amplify the output so that it is a bit louder?
How to draw a matrix with arrows in limited space
15% tax on $7.5k earnings. Is that right?
Why do Radio Buttons not fill the entire outer circle?
Does the reader need to like the PoV character?
Shouldn’t conservatives embrace universal basic income?
Why does this expression simplify as such?
How to preserve electronics (computers, iPads and phones) for hundreds of years
A variation to the phrase "hanging over my shoulders"
Can I turn my anal-retentiveness into a career?
What is Cash Advance APR?
Has the laser at Magurele, Romania reached a tenth of the Sun's power?
Why is the Sun approximated as a black body at ~ 5800 K?
C++ copy constructor called at return
How do I tell my boss that I'm quitting soon, especially given that a colleague just left this week
What does Apple's new App Store requirement mean
"It doesn't matter" or "it won't matter"?
Has any country ever had 2 former presidents in jail simultaneously?
Taxes on Dividends in a Roth IRA
What (the heck) is a Super Worm Equinox Moon?
How can I, as DM, avoid the Conga Line of Death occurring when implementing some form of flanking rule?
Review your own paper in Mathematics
Microchip documentation does not label CAN buss pins on micro controller pinout diagram
Nginx + PHP-FPM ignores no-cache headers
Expires directive returned in the ngix server response headerCache-control for permanent 301 redirects nginxNginx Cache-ControlMy Apache 2.2 local test server with php none cgi automaticly removes logged in ipad usersIs it really possible to use PHP sessions for authentication with nginx fastcgi cache?WordPress Nginx Browser Cache Expires on Extentionless URLsnginx x-cache status flipping between hit and expired on WordPress site (test php file OK)Cache-Control not working in AWS S3 object MetadataWhy is curl requests from terminal always gives X-Cache-Status: MISSNginx web-cache tweeking
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?
php cache nginx
migrated from superuser.com Sep 21 '10 at 21:17
This question came from our site for computer enthusiasts and power users.
add a comment |
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?
php cache nginx
migrated from superuser.com Sep 21 '10 at 21:17
This question came from our site for computer enthusiasts and power users.
add a comment |
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?
php cache 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?
php cache nginx
php cache nginx
asked Sep 21 '10 at 20:40
Eric Winchell
migrated from superuser.com Sep 21 '10 at 21:17
This question came from our site for computer enthusiasts and power users.
migrated from superuser.com Sep 21 '10 at 21:17
This question came from our site for computer enthusiasts and power users.
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
You send a duplicate "Cache-Control" header. Try removing the second one.
add a comment |
Check NGINX settings. Might be there something like
proxy_ignore_headers "Cache-Control" "Expires";
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f183343%2fnginx-php-fpm-ignores-no-cache-headers%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You send a duplicate "Cache-Control" header. Try removing the second one.
add a comment |
You send a duplicate "Cache-Control" header. Try removing the second one.
add a comment |
You send a duplicate "Cache-Control" header. Try removing the second one.
You send a duplicate "Cache-Control" header. Try removing the second one.
answered Sep 26 '10 at 15:43
AEPAEP
41224
41224
add a comment |
add a comment |
Check NGINX settings. Might be there something like
proxy_ignore_headers "Cache-Control" "Expires";
add a comment |
Check NGINX settings. Might be there something like
proxy_ignore_headers "Cache-Control" "Expires";
add a comment |
Check NGINX settings. Might be there something like
proxy_ignore_headers "Cache-Control" "Expires";
Check NGINX settings. Might be there something like
proxy_ignore_headers "Cache-Control" "Expires";
answered Sep 25 '14 at 11:27
Prosto TraderProsto Trader
134126
134126
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f183343%2fnginx-php-fpm-ignores-no-cache-headers%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown