tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phillip Qin <Phillip....@shareowner.com>
Subject RE: [OT] Setting no-cache headers for javascript
Date Thu, 07 Oct 2004 13:40:28 GMT
Read servlet spec or books. In short, extend filter, then your custom class
add header, finally map your in web.xml.



-----Original Message-----
From: Antony Paul [mailto:antonypaul24@gmail.com] 
Sent: October 7, 2004 7:52 AM
To: Tomcat Users List
Subject: Re: [OT] Setting no-cache headers for javascript


I used JSP. How to use filter ?

rgds
Antony Paul 


On Thu, 07 Oct 2004 04:44:28 -0700, Hassan Schroeder <hassan@webtuitive.com>
wrote:
> Antony Paul wrote:
> 
> >    How to add no-cache header to a javascript file which is set in 
> > the html as <script src="scripts/hello.js"<</script>.
> 
> Either make your JavaScript file a JSP, or use a Filter. (The first is 
> quicker, the second's more scalable if you might want to do this with 
> multiple JS files...)
> 
> HTH!
> --
> Hassan Schroeder ----------------------------- hassan@webtuitive.com
> Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
> 
>                           dream.  code.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


!DSPAM:41652df0280486782219933!

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message