Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-11-2012, 10:43 AM   PM User | #1
fat
New Coder

 
Join Date: Jun 2009
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
fat is an unknown quantity at this point
Question how to prevent caching in all browsers

Hi

I don't want my page(s) to be cached AT ALL with any browser (chrome , IE, firefox etc.).

will this in the "HEAD" tag cover it ?

Code:
<meta http-equiv="cache-control" content="max-age=0" /> 
<meta http-equiv="cache-control" content="no-cache" /> 
<meta http-equiv="expires" content="0" /> 
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" /> 
<meta http-equiv="pragma" content="no-cache" />
I googled for the solution, seems the answer keeps changing frequently
fat is offline   Reply With Quote
Old 01-30-2013, 09:25 AM   PM User | #2
fat
New Coder

 
Join Date: Jun 2009
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
fat is an unknown quantity at this point
can I get an answer please ?
fat is offline   Reply With Quote
Old 01-30-2013, 06:41 PM   PM User | #3
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,455
Thanks: 0
Thanked 498 Times in 490 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
Those headers would possibly work but they'd work better as headers ratherr than in the HTML itself. By the time the browsers get to that point they have already processed the headers and only allow some of them to be overridden by http-equiv.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 Jump


All times are GMT +1. The time now is 11:05 AM.


Advertisement
Log in to turn off these ads.