Go Back   CodingForums.com > :: Client side development > JavaScript programming

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 05-17-2007, 07:13 PM   PM User | #1
Fumigator
UE Antagonizer


 
Fumigator's Avatar
 
Join Date: Dec 2005
Location: Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
Posts: 7,686
Thanks: 42
Thanked 637 Times in 625 Posts
Fumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of light
An included js file does not like to clear out of cache

I'm using a 3rd party text editor which is configured using js files. The trouble is, any time I make a change to the config file, the browser (both Firefox and IE) refuses to clear the old config file out of cache and recognize the updated file. I have to manually type the path to the config file into the URL to bring up the js file and hit REFRESH, which finally brings in the newest version.

Is there any way to help the browser understand there is a new file? I've tried all kinds of "no cache"-type header commands and none have worked so far.
__________________
Fumigator is offline   Reply With Quote
Old 05-17-2007, 07:22 PM   PM User | #2
smalldog
Regular Coder

 
Join Date: May 2007
Posts: 118
Thanks: 0
Thanked 0 Times in 0 Posts
smalldog is an unknown quantity at this point
I think that you must force refresh of the main page not that JS file..

Try this headers:

Code:
    Cache-Control: no-cache, must-revalidate
    Expires: Mon, 26 Jul 1997 05:00:00 GMT
__________________
Forum for webmasters and developers
http://www.htmlfrenzy.com
Are you an IT expert? Join our Reward system
www.htmlfrenzy.com/reward-system.php

Last edited by smalldog; 05-17-2007 at 07:25 PM..
smalldog 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 09:46 PM.


Advertisement
Log in to turn off these ads.