Re: [OT] Setting no-cache headers for javascript
Using filter to set the headers works. Thanks for the help. rgds Antony Paul On Thu, 7 Oct 2004 19:20:18 +0530, Antony Paul [EMAIL PROTECTED] wrote: Ok. I will test by adding a header using a Filter to all js requests. I thought I have to interpret every js request and read the file from dist and deliver it. Thanks rgds Antony Paul On Thu, 7 Oct 2004 09:40:28 -0400, Phillip Qin [EMAIL PROTECTED] wrote: 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:[EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - 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] !DSPAM:41652df0280486782219933! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Setting no-cache headers for javascript
Hi all, How to add no-cache header to a javascript file which is set in the html as script src=scripts/hello.js/script. This comes in an HTML page. I set the meta tags for cache control. But no use. Uses IE 6.0, Tomcat 4.1.30. rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Setting no-cache headers for javascript
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 - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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 [EMAIL PROTECTED] 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 - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - 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]
Re: [OT] Setting no-cache headers for javascript
Antony Paul wrote: I used JSP. How to use filter ? 1) read Chapter 6 of the Servlet spec, and 2) look at the examples included with Tomcat -- there's several Filters there for dissection :-) -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Setting no-cache headers for javascript
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:[EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - 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] !DSPAM:41652df0280486782219933!
Re: [OT] Setting no-cache headers for javascript
Ok. I will test by adding a header using a Filter to all js requests. I thought I have to interpret every js request and read the file from dist and deliver it. Thanks rgds Antony Paul On Thu, 7 Oct 2004 09:40:28 -0400, Phillip Qin [EMAIL PROTECTED] wrote: 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:[EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - 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] !DSPAM:41652df0280486782219933! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]