Jason King wrote:

It caches by default. To test this, put some arbitrary obscure string like "I am not a number, I am a free man" inside your js file, clear the browser cache, load the page once and you should find this in the cache once. You'll have to use a find utility that searches on strings. Then load the page a seond time and you should still only have one file in your cache with that string.

I'm not sure I understand; of course, at any time, there should be (at most) one copy of the page in the cache.


Anyway, I've just spent some time testing caching by modifying JSP pages and GIF images on the server and then testing whether or not the browser automatically downloads them (ie, by selecting the page from a bookmark, not by hitting the refresh button). It seems like IE (version 6.0) never redownloads, but Firefox (version 1.0) ALWAYS redownloads. Hard to believe though. Well, it's definitely not a Struts issue but if anyone has any idea what's going on, let me know.

Thanks,
Bill

PS: even if the browser is sending a simple "check file last modification date" to the server, I want to avoid that also.

Bill Keese wrote:

<script language="Javascript1.1" src="staticJavascript.jsp">




How do I tell the browser to cache staticJavascript.jsp rather than downloading it each time? I know the browser caches images by default, but I'm not sure whether or not it would cache files with a .jsp extension. Do I have to do the opposite of what is listed on this page: http://www.ajug.org/archive/ajug-members/10404/msg00041.html ?

Also, is there any way to confirm what the browser is caching and what it is reloading (other than using a stopwatch)?

Bill

Matt Bathje wrote:



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to