• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

caching the js file

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic