Register
Login
Contribute
Subscribe
RSS
News
FAQForge
ISPConfig
Subscribe
Contribute
Forums
Howtos
Navigation
Howtos
Linux
Android
CentOS
Debian
Fedora
Kernel
Mandriva
PCLinuxOS
SuSE
Ubuntu
Web Server
Apache
Cherokee
Lighttpd
nginx
Backup
Control Panels
ISPConfig
DNS
BIND
MyDNS
PowerDNS
djbdns
Desktop
Email
Anti-Spam/Virus
Postfix
FTP
High-Availability
Lighttpd
Monitoring
MySQL
Programming
C/C++
PHP
Samba
Security
Anti-Spam/Virus
Storage
Virtualization
KVM
OpenVZ
VMware
VirtualBox
Xen
Other
FreeBSD
Commercial
Mini-Howtos
Linux
Apache
Backup
DNS
Errors
FTP
MySQL
Networking
PHP
Postfix
Security
Sendmail
Shell
Other
ISPConfig
Forums
Contribute
Create Content
Subscription
Login
Site Map/RSS Feeds
Facebook
News
Pidora: Fedora Linux for the Raspberry Pi ARMs Up (Thanks to Seneca)
24 Peachy Free Linux Games (Part 3 of 4)
Poll: Firefox Does Not Need Fewer Options
High-res batch convert EMZ / WMZ grahpics to PNG a.k.a. "liberating your graphics"
Debian Project, Community, Mourns Loss of Ray Dassen
Introducing the BeagleBone Black’s Linux 3.8 kernel
Samsung, carriers tout first Tizen mobes for late 2013
Build your own supercomputer out of Raspberry Pi boards
Pidora, Raspberry Pi’s Unfortunately Named Fedora Remix
Dietrich Schmitz Joins ECT News Network
more
Recent comments
Re: Installation successful, but I can't receive any mail...
13 hours 13 min ago
ssl
13 hours 18 min ago
No Mails could be send.... Connection refused
18 hours 16 min ago
array param function
1 day 57 min ago
Thank you so much. 2 thumbs
1 day 1 hour ago
Great post... But...
1 day 3 hours ago
Instead of copying and
1 day 7 hours ago
 Correction: fro m_address=`
1 day 13 hours ago
tuto thanks
1 day 17 hours ago
WFM
1 day 19 hours ago
Newsletter
Subscribe to HowtoForge Newsletter
and stay informed about our latest HOWTOs and projects.
(To unsubscribe from our newsletter, visit this
link
.)
English
|
Deutsch
|
Site Map/RSS Feeds
|
Advertise
HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials
>
Linux Forums
>
Programming/Scripts
How to keep my pages from beein cached
User Name
Remember Me?
Password
Register
FAQ
Members List
Social Groups
Calendar
Search
Today's Posts
Mark Forums Read
Do you like HowtoForge? Please consider supporting us by
becoming a subscriber
.
Thread Tools
Display Modes
#
1
19th December 2007, 03:58
dhonnoll78
Member
Join Date: Dec 2006
Posts: 42
Thanks: 2
Thanked 0 Times in 0 Posts
How to keep my pages from beein cached
My web pages for
www.missionnicaragua.net
keep getting cached and for very long times. How do I code my pages to keep that from happening?
dhonnoll78
View Public Profile
Send a private message to dhonnoll78
Find all posts by dhonnoll78
Sponsored Links
#
2
19th December 2007, 14:30
volksman
Senior Member
Join Date: May 2007
Posts: 124
Thanks: 2
Thanked 13 Times in 12 Posts
This may help:
http://www.htmlgoodies.com/beyond/re...le.php/3472881
volksman
View Public Profile
Send a private message to volksman
Find all posts by volksman
#
3
17th January 2008, 21:22
white.wizard
Junior Member
Join Date: Jan 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
From php manual about header function:
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// always modified
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
This should do the trick.
__________________
quality content inside
white.wizard
View Public Profile
Send a private message to white.wizard
Visit white.wizard's homepage!
Find all posts by white.wizard
Bookmarks
Digg
del.icio.us
StumbleUpon
Google
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Forum Rules
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
Linux Forums
HOWTO-Related Questions
Installation/Configuration
Server Operation
Desktop Operation
Kernel Questions
Programming/Scripts
Technical
Suggest HOWTO
ISPConfig 3
General
Installation/Configuration
ISPConfig 3 Priority Support
Plugins/Modules/Addons
Tips/Tricks/Mods
Feature Requests
Developers' Forum
ISPConfig 2
General
Installation/Configuration
Tips/Tricks/Mods
Feature Requests
Developers' Forum
MyDNSConfig
General
Other Forums
Smalltalk
Forum Suggestions
Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Please Help me SmartAX MT810 :(
cola
Technical
0
9th November 2007
11:50
Fedora Core 6 install issues
moos3
Installation/Configuration
10
22nd March 2007
18:25
Another ERROR: The PHP binary coming with ISPConfig does not work properly on your sy
hoopsx3
Installation/Configuration
2
29th January 2007
07:56
Ispconfig update problems from 2.4 to 2.6
adrenalinic
Installation/Configuration
23
7th September 2006
12:58
problem with upgrade
badben
Installation/Configuration
24
4th March 2006
14:22
All times are GMT +2. The time now is
13:05
.
Contact Us
-
HowtoForge - Linux Howtos and Tutorials
-
Archive
-
Top
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Recent comments
13 hours 13 min ago
13 hours 18 min ago
18 hours 16 min ago
1 day 57 min ago
1 day 1 hour ago
1 day 3 hours ago
1 day 7 hours ago
1 day 13 hours ago
1 day 17 hours ago
1 day 19 hours ago