/    Sign up×
Community /Pin to ProfileBookmark

how can i make a php page not be readed from cache?

i have a php page that i load into an iframe
and when i refresh it it idosent update~
how can i force it to reload the page but not from the cache?
i know there is a possibility like that in ASP
how can i do the same in php?
thnaks in advance
peleg

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@96turnerriAug 18.2004 — if you hit refresh in your browser it will update it

you could put a link on your page.php

<a href="page.php">Refresh</a>

look up meta-refresh and revisit-after
Copy linkTweet thisAlerts:
@Stephen_PhilbinAug 18.2004 — You can prevent a page from caching by placing certain commands in the header() function. Can't remember exactly what, but you can find it easily enough if you check out the header() function in the php manual at www.zend.com
Copy linkTweet thisAlerts:
@JavaHead_JonnieAug 19.2004 — Perhaps this will help you:[code=php]// HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);

// HTTP/1.0
header("Pragma: no-cache");[/code]
×

Success!

Help @pelegk1 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.28,
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,
)...