473,563 Members | 2,857 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5531
On Wed, 26 Jan 2005 13:21:28 -0000, "Larry Neylon"
<la***@nospam.n tlworld.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="javas cript"
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*********@zi na.com> wrote in message
news:41******** *********@msnew s.microsoft.com ...
On Wed, 26 Jan 2005 13:21:28 -0000, "Larry Neylon"
<la***@nospam.n tlworld.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.n tlworld.com> wrote:
Client side Javascript, i.e. <script language="javas cript"
src="javascrip t/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*********@zi na.com> wrote in message
news:41******* **********@msne ws.microsoft.co m...
On Wed, 26 Jan 2005 13:21:28 -0000, "Larry Neylon"
<la***@nospam.n tlworld.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
2386
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 running on Windows 2003 IIS6.0 and basically screwed it up. - I made a backup of the page before I made the modification which I then restored to make...
2
1662
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 the code is. Does anybody know of software that will simulate modem speed over a DSL connection -- i.e., temporarily slow down the speed of my...
6
1835
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 session, the user interacts with two of these frames extensively, and up to the very end of the session, this interaction is handled entirely client-side...
4
1143
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 code then manipulates the image file - after which the aspx page refreshes on the client, showing the rotated version of the photo. In testing I...
8
2378
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 issuses. This deals with the Worker Processes. By default, there is only 1 Worker Process that gets recycled after 1700 minutes or so. The problem...
17
2717
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 src="/shared/scripts/common.js?revision=1.6" type="text/javascript">. I am trying to see if there is any big deal to this or a best practice that is...
2
4297
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 this by including a querystring with the url with each external stylesheet and script file declaration? For example: <link type="text/css"...
0
7664
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
1
7638
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7948
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6250
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3642
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1198
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.