Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,860 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,649 people online right now. Registration is fast and FREE... Join Now!




Force refresh or no cache use.

 
Reply to this topicStart new topic

Force refresh or no cache use., how do i?

electrickjagwire
23 Jul, 2008 - 10:21 AM
Post #1

New D.I.C Head
*

Joined: 10 Sep, 2005
Posts: 23


My Contributions
Does any one have a tip how to do this? I have made significant changes to my site, but If people don't know to empty their cache, or refresh the page, these changes are not reflected.

Is there code I can insert to force a refresh or force the browser to not use cache?

Thank you!
User is offlineProfile CardPM
+Quote Post

girasquid
RE: Force Refresh Or No Cache Use.
23 Jul, 2008 - 11:34 AM
Post #2

Barbarbar
Group Icon

Joined: 3 Oct, 2006
Posts: 1,267



Thanked: 14 times
Dream Kudos: 650
My Contributions
Do you want to disable caching altogether, or just update your cached items?

If all you need to do is update, you could modify the names of things so that they have version numbers in them - that way, the new assets are loaded(and then cached), and anytime you need a 'refresh' you just deploy files with a different number in their names.
User is offlineProfile CardPM
+Quote Post

jelthure
RE: Force Refresh Or No Cache Use.
14 Aug, 2008 - 12:26 AM
Post #3

New D.I.C Head
*

Joined: 13 Aug, 2008
Posts: 7


My Contributions
what you need is this:

CODE
<META HTTP-EQUIV='CACHE-CONTROL' CONTENT='NO-CACHE'>


hope this helps
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/3/08 07:15PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month