RE: The browser cache JS resources?

2004-03-17 Thread Brendan Richards
Add the following headers to your js/staticJavascript.jsp file to tell
your browser not to cache it:

%
response.addHeader(Cache-Control, no-store, no-cache,
must-revalidate); // HTTP/1.1
response.addHeader(Pragma, no-cache);
response.setDateHeader (Expires, 0); //prevents caching at the proxy

%

-Original Message-
From: Hookom, Jacob [mailto:[EMAIL PROTECTED] 
Sent: 16 March 2004 19:45
To: Struts Users Mailing List
Subject: RE: The browser cache JS resources?

Yes, that is good.

-Original Message-
From: Joao Batistella [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 16, 2004 1:32 PM
To: 'Struts Users Mailing List'
Subject: The browser cache JS resources?

Hello.

I have a doubt. I'm thinking about including in all my pages the same
javascrip file with the code:
script language=Javascript1.1
src=js/staticJavascript.jsp//script

This is because I want this file with all javascript code (or including
code) in all pages, even the page doesn't make use of it.

Is this bad? My doubt is if the browser will always request the JS file,
every request or put it in cache.

Thanks,
JP


-
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]



The browser cache JS resources?

2004-03-16 Thread Joao Batistella
Hello.

I have a doubt. I'm thinking about including in all my pages the same
javascrip file with the code:
script language=Javascript1.1 src=js/staticJavascript.jsp//script

This is because I want this file with all javascript code (or including
code) in all pages, even the page doesn't make use of it.

Is this bad? My doubt is if the browser will always request the JS file,
every request or put it in cache.

Thanks,
JP



RE: The browser cache JS resources?

2004-03-16 Thread Hookom, Jacob
Yes, that is good.

-Original Message-
From: Joao Batistella [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 16, 2004 1:32 PM
To: 'Struts Users Mailing List'
Subject: The browser cache JS resources?

Hello.

I have a doubt. I'm thinking about including in all my pages the same
javascrip file with the code:
script language=Javascript1.1 src=js/staticJavascript.jsp//script

This is because I want this file with all javascript code (or including
code) in all pages, even the page doesn't make use of it.

Is this bad? My doubt is if the browser will always request the JS file,
every request or put it in cache.

Thanks,
JP


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: The browser cache JS resources?

2004-03-16 Thread Shahak.Nagiel
First, I'd recommend renaming it with a .js file extension, since JSP is probably 
misleading if it's only got JS functions.

I don't see where you could (forcibly) cache it on the client machine, nor would you 
want to.

Most modern browsers try to cache files (I know HTML and images, and I'm assuming .js 
files as well), so this might already be done for you by most clients.  Unless this is 
a huge .js file, and most/all of your clients are over a dial-up connection, I 
wouldn't worry about it too much.

But, for performance and modularity, it's generally best to create a single main.js 
for common/shared javascript functionality, and a page- or use-case-specific 
javascript file in addition depending on the page.  (You can, of course, embed as many 
as you like.)


-Original Message-
From: Joao Batistella [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 16, 2004 2:32 PM
To: 'Struts Users Mailing List'
Subject: The browser cache JS resources?


Hello.

I have a doubt. I'm thinking about including in all my pages the same
javascrip file with the code:
script language=Javascript1.1
src=js/staticJavascript.jsp//script

This is because I want this file with all javascript code (or including
code) in all pages, even the page doesn't make use of it.

Is this bad? My doubt is if the browser will always request the JS file,
every request or put it in cache.

Thanks,
JP


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: browser cache.

2003-10-26 Thread kimbuba
thnx Steve!

Steve Raeburn [EMAIL PROTECTED] ha scritto nel messaggio
news:[EMAIL PROTECTED]
 There is.
 http://jakarta.apache.org/struts/userGuide/configuration.html#controll
 er_config

 Steve





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



browser cache.

2003-10-25 Thread kimbuba
Hello!
is there a way to tell struts sending headers to tell client browser to
don't cache  pages?
(sending expired headers).

Thnx to all!




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: browser cache.

2003-10-25 Thread Steve Raeburn
There is.
http://jakarta.apache.org/struts/userGuide/configuration.html#controll
er_config

Steve

 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] Behalf Of kimbuba
 Sent: October 25, 2003 10:27 AM
 To: [EMAIL PROTECTED]
 Subject: browser cache.


 Hello!
 is there a way to tell struts sending headers to tell
 client browser to
 don't cache  pages?
 (sending expired headers).

 Thnx to all!




 
 -
 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]



html:link - How to avoid the browser cache

2002-08-19 Thread marcio . miranda

Hi,

Is there a way to avoid getting the response from the browser cache when
using the tag html:link.

Some tag libraries provide an attribute to add a unique parameter (some
random value) in the URL request. This is a workaround that prevents the
browser from finding a page in the cache.

The header attributes cache-control, etc ... doesn't work with Internet
Explorer (it depends on the client configuration).

I am aware that you can solve this problem by using forms (post method)
only. I was just wondering if the struts link tag has a workaround for this
problem.

Thank you all.

Confidencialidade do Correio do Eletrônico***
Informações confidenciais podem estar contidas nesta mensagem. Se você não
se encontra na lista de destinatários ou não é o remetente da mesma, você
não deve copiar ou enviar esta mensagem para ninguém. Neste caso, você deve
destruir e notificar o remetente da mesma. A empresa considera opiniões,
conclusões e outras informações que não se relacionam com o negócio oficial
da corporação de responsabilidade do usuário do serviço.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Browser cache

2001-12-06 Thread Kiet Nguyen

When the browser has cache on (Never check for new version of the store
page), the follow code does not submit the form.  I think it is because it
is a link. 

html:link href=javascript:cancelOrSubmit('workOrderSubmitOrder.do','Your
order will be submitted for broadcast distribution.  Do you want to
continue?') img src=images/submitorder.gif width=113 height=24
border=0 /html:link

When I change this to an image, I can't get the javascript to work under
netscape 4.7.   Is there a way to write the submit so that it has the pop-up
diaglog with image.  Please help!!!


html:image src=images/submitorder.gif
onClick=javascript:cancelOrSubmit('workOrderSubmitOrder.do','Your order
will be submitted for broadcast distribution.  Do you want to continue?')
/


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]