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

Join 131,548 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,262 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
post 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

Go to the top of the page


girasquid
post 23 Jul, 2008 - 11:34 AM
Post #2


Barbarbar

Group Icon
Joined: 3 Oct, 2006
Posts: 1,255



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

Go to the top of the page

jelthure
post 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

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/20/08 02:22AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month