/    Sign up×
Community /Pin to ProfileBookmark

Php keeps bringing up old pages

Hi,

I’ve never had this kind of problem before.
I modify pages and a day or two later even, the old pages keep reloading (every now and then).
Finally things repair themselves permanently but very slowly.
This used to happen only if I didn’t start a new session and wasn’t using headers with a date in the past. But now it’s happening all the time and the headers make no difference. Could somebody give me a clue to why this is happening? Since php is a server side script does that mean that this happens to everybody who sees the site?
The session thing was obviously local…Help!

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@chazzyJan 04.2009 — did you clear your cache? are your pages marked w/ no cache headers?
Copy linkTweet thisAlerts:
@RoxyBooauthorJan 04.2009 — I am clearing the cache.

This is what I am using. Seems there is no cache used at all. Now I got it why the date is in the past.

header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past=
×

Success!

Help @RoxyBoo spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...