473,700 Members | 2,823 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 5537
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
2391
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 it back to normal (search.aspx is now back to the original) I can't get the good page to display...
2
1669
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 connection, or the speed at which the browser uses the connection? (I author on a Mac but test on a PC...
6
1860
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 by a fairly elaborate JavaScript script. (This interaction takes place exclusively via HTML...
4
1146
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 have observed that sometimes the image will in fact get rotated (on the server), but the aspx page in...
8
2381
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 is, that we will select some data from the screen, which opens up another window to update the info....
17
2724
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 starting to creep up in the JavaScript community. If this is used only as a way to distinguish what...
2
4305
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" rel="stylesheet" href="../images/menu.css?
0
8638
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9202
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9058
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8952
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 most users, this new feature is actually very convenient. If you want to control the update process,...
1
6555
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5894
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4395
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4649
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2018
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.