aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes caching the js file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "caching the js file " Watch "caching the js file " New topic
Author

caching the js file

vishnu nandimalla
Greenhorn

Joined: Aug 03, 2001
Posts: 1
Hi, I have a jsp page inside which iam calling js file ,and this page contains some images also.I am using no cache pragma tag to prevent cache in my jsp file,how ever i observed webserver log file , when ever i ask jsp file ,it down loads the jsp file and js file,but not the same case with images(that means images are caching.)i want to cache my js file,at the same time i dont want to cahe my jsp file,is it possible? i wrote jsp like <%response.addHeader("Pragma", "No-cache"); response.addHeader("Cache-Control", "no-cache"); response.addDateHeader("Expires", -1); %> <SCRIPT LANGUAGE="JavaScript" SRC="myscript.js"></SCRIPT> ... etc any help is greatly appreciated Thanks vishnu
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: caching the js file
 
Similar Threads
Stop caching of an image
Protected resource
Caching Problem with JNLP
Browser won't refresh unless you hit F5 - how can I do this in code?
How to solve refresh problem in JSP