473,382 Members | 1,386 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Javascript Caching Question on IIS6

Hi,

I am having problems with our IIS6 server serving out of date javascript
files in our ASP scripts.

It appears to be an intermittent problem, but causes all kinds of headaches
when working on javascript code.

Is there any way of setting a Javascript file to always expired ?

Any ideas of any setting in ASP / IIS to prevent this happening ?

Many Thanks,
Larry Neylon.
Jul 22 '05 #1
5 5513
On Wed, 26 Jan 2005 13:21:28 -0000, "Larry Neylon"
<la***@nospam.ntlworld.com> wrote:
I am having problems with our IIS6 server serving out of date javascript
files in our ASP scripts.

It appears to be an intermittent problem, but causes all kinds of headaches
when working on javascript code.

Is there any way of setting a Javascript file to always expired ?

Any ideas of any setting in ASP / IIS to prevent this happening ?


Server-side Javascript (Jscritp) or client side scripts?

Jeff
Jul 22 '05 #2
Jeff,

Client side Javascript, i.e. <script language="javascript"
src="javascript/client.js" type="text/javascript"></script>

If I look in the file system I can see the latest version, but if I go to
http://server/javascript/client.js I see an old version until I restart the
server.

Thanks,
Larry.

"Jeff Cochran" <je*********@zina.com> wrote in message
news:41*****************@msnews.microsoft.com...
On Wed, 26 Jan 2005 13:21:28 -0000, "Larry Neylon"
<la***@nospam.ntlworld.com> wrote:
I am having problems with our IIS6 server serving out of date javascript
files in our ASP scripts.

It appears to be an intermittent problem, but causes all kinds of
headaches
when working on javascript code.

Is there any way of setting a Javascript file to always expired ?

Any ideas of any setting in ASP / IIS to prevent this happening ?


Server-side Javascript (Jscritp) or client side scripts?

Jeff

Jul 22 '05 #3
On Thu, 27 Jan 2005 09:36:12 -0000, "Larry Neylon"
<la***@nospam.ntlworld.com> wrote:
Client side Javascript, i.e. <script language="javascript"
src="javascript/client.js" type="text/javascript"></script>

If I look in the file system I can see the latest version, but if I go to
http://server/javascript/client.js I see an old version until I restart the
server.
Check and see if it's the client caching it. Clear the cache on the
client, then go to the page and see if it's updated.

Jeff

"Jeff Cochran" <je*********@zina.com> wrote in message
news:41*****************@msnews.microsoft.com.. .
On Wed, 26 Jan 2005 13:21:28 -0000, "Larry Neylon"
<la***@nospam.ntlworld.com> wrote:
I am having problems with our IIS6 server serving out of date javascript
files in our ASP scripts.

It appears to be an intermittent problem, but causes all kinds of
headaches
when working on javascript code.

Is there any way of setting a Javascript file to always expired ?

Any ideas of any setting in ASP / IIS to prevent this happening ?


Server-side Javascript (Jscritp) or client side scripts?

Jeff


Jul 22 '05 #4

Jeff Cochran wrote:
Check and see if it's the client caching it. Clear the cache on the
client, then go to the page and see if it's updated.


I saw the same problem since Januar 2005.
First static files are served out of date.
At the moment all files including asp are
wrong.

Clearing the local cache, ... doesn't help.
Inserting headers and meta tags to suppress
caching of this files doesn't also work.

System is: IIS 6 on Windows Server 2003
(latest patches)

Browser is: IE 6 SP1 (all patches) and
Firefix 1.0.

This isn't a client side problem but a
server side one.

--
haste
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Jul 22 '05 #5

I'm keen to know the answer to this one as well. I can get around th
problem by doing something else for 5 minutes or so whenever I chang
the javascript, but I'd much prefer to just stop the caching for th
development site
-
ProggerPet
-----------------------------------------------------------------------
Posted via http://www.codecomments.co
-----------------------------------------------------------------------

Jul 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mark Andrews | last post by:
I feel like an idiot but I can't seem to figure out which setting I need to change to stop a bad page from caching. - I modified the search.aspx page in our Sharepoint 2003 portal product...
2
by: Lawrence San | last post by:
I'm trying to test some simple JavaScript meant to speed up the display of my Web pages for readers using modems, but I have a fast DSL connection and I'm having trouble visualizing how effective...
6
by: KKramsch | last post by:
OK, here's the scenario: I have a CGI script that generates a page with frames (BTW, I'm not crazy about frames, but in this case the decision to use them is out of my hands). In a typical...
4
by: Smithers | last post by:
My ASP.NET app enables users to upload photos - after which they can optionally rotate the photo (90 degrees to the left or right). They just click a link that causes a postback, and server-side...
8
by: TechNeck | last post by:
We have a website that reads data from Oracle and creates an XML file. Then the site uses that file to access the info faster. On IIS5 we have no problems, but on IIS6 we seem to have some caching...
17
by: NeoAlchemy | last post by:
I am starting to find more web pages that are using a query parameters after the JavaScript file. Example can be found at www.opensourcefood.com. Within the source you'll see: <script...
2
by: mark4asp | last post by:
Can I force the client to stop caching old stylesheets and javascript? In my dynamic web-site, I need to force the client to stop caching old versions of my stylesheets and javascript. Can I do...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.