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
Atom-based Samsung Galaxy Tab 3 10.1 rumors abound
Microsoft Releases Skype For Linux 4.2, Has Bug-Fixes
Linux Games: Haunt
Accessing the Raspberry Pi’s 1MHz timer
Test-Driving Development for the Firefox OS Phone
CrunchBang 11 Waldorf Review
VMware Cloud and Zimbra Open Source Email: Countering Microsoft Office 365?
Top 5 misconceptions about open source in government programs
Putting Technology into the Hands of Tomorrow
Ubuntu Linux Tablets From System76, ZaReason?
more
Recent comments
Merci
1 day 1 min ago
I found that php_flag
1 day 4 hours ago
Great stuff!
1 day 6 hours ago
Wonderful Howto
1 day 7 hours ago
Hoi,do not plan on virtual
1 day 9 hours ago
Thank you for posting
1 day 13 hours ago
Thank you. Â Excellent
1 day 14 hours ago
Re: The structure of the passdb file
1 day 16 hours ago
using googles open dns 8.8.8.8 8.8.4.4
2 days 5 hours ago
Re: Re: Re: Re: I can't believe people are
2 days 7 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
02:25
.
Contact Us
-
HowtoForge - Linux Howtos and Tutorials
-
Archive
-
Top
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Recent comments
1 day 1 min ago
1 day 4 hours ago
1 day 6 hours ago
1 day 7 hours ago
1 day 9 hours ago
1 day 13 hours ago
1 day 14 hours ago
1 day 16 hours ago
2 days 5 hours ago
2 days 7 hours ago