try to set this header in the requestbuilder builder.setHeader(RequestUtil.EXPIRES,RequestUtil.LAST_MODIFIED_AND_EXPIRES_VAL);//so it seems always old builder.setHeader(RequestUtil.LAST_MODIFIED,RequestUtil.LAST_MODIFIED_AND_EXPIRES_VAL);// seems always modified builder.setHeader(RequestUtil.CACHE_CONTROL, RequestUtil.CACHE_CONTROL_VAL); // this is for HTTP/1.1 compatibility builder.setHeader(RequestUtil.PRAGMA,RequestUtil.PRAMGA_VAL); // this is for HTTP/1.0 compatibility
i have made many tries with all browsers and seems to me that with this header options all the browser ALWAYS reload the content bye Pat 2009/12/16 Salil <[email protected]> > Hello Forum Members, > > I am facing a peculiar issue of Caching in internet explorer with my > GWT Application. This issue does not occur in Firefox. However I need > the issue fixed in IE as well since it is the primary browser of the > users. > > My application has a main page which lists out different hyperlinks to > the user. Each of these hyperlinks is a Get URL sending the request to > the server which spawns in a new IE window. > > The problem occurs when the newly spawned IE window is closed > prematurely (before the page loads completely). Once the window is > closed prematurely, any new clicks on the main page (page with the GET > URLs) fails to open the application page. A new page is opened which > just waits indefinately for a response, when in fact there is no > request coming in at the server side. > > I have already tried the following suspecting an IE caching issue > without success. > > 1. Changed the GET query to a POST. Going by posts on other forums > that the POST is never cached at the browser. > > 2. Put META tags in the html page as follows: > <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> <META HTTP- > EQUIV="EXPIRES" CONTENT="01 Jan 1970 00:00:00 GMT"> <META HTTP- > EQUIV="PRAGMA" CONTENT="NO-CACHE"> > > 3. Defined a ServletFilter to intercept all requests on server and > insert the above META tags in the http response header. > > 4. Modified the GET URL to insert a dynamic parameter (sysdate) so > that the GET URL is always new and is not cached. However this too > does not work since the main page is not refreshed before the user > clicks on the urls. > > Kindly advice on what could be the issue here. I am ready to supply > any further information required in this regard. > > Thanks, > > Salil Kaul > > -- > > You received this message because you are subscribed to the Google Groups > "GWT-Ext Developer Forum" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<gwt-ext%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/gwt-ext?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "GWT-Ext Developer Forum" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/gwt-ext?hl=en.
