You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Antony Paul <an...@gmail.com> on 2004/10/07 13:21:02 UTC
[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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: [OT] Setting no-cache headers for javascript
Posted by Hassan Schroeder <ha...@webtuitive.com>.
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 ----------------------------- 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
Re: [OT] Setting no-cache headers for javascript
Posted by Antony Paul <an...@gmail.com>.
I used JSP. How to use filter ?
rgds
Antony Paul
On Thu, 07 Oct 2004 04:44:28 -0700, Hassan Schroeder
<ha...@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
Re: [OT] Setting no-cache headers for javascript
Posted by Hassan Schroeder <ha...@webtuitive.com>.
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