6
votes
5answers
7k views

Prevent IE caching

I am developing a Java EE web application using Struts. The problem is with Internet Explorer caching. If an user logs out he can access some pages because they are cached and no request is made. If I ...
5
votes
2answers
961 views

How do I prevent browser caching with Play?

Part of my app provides a file to be downloaded using the redirect() method. I have found that Chrome (and not Firefox or IE, weirdly) is caching this file so that the same version gets downloaded ...
5
votes
1answer
816 views

How can I implement CSS Cache Busting with JSF outputStylesheet?

In JSF page templates I use this code to include a CSS resource: <h:outputStylesheet library="css" name="mystyles.css" /> The usual way to implement CSS cache busting would be to add a ...
2
votes
3answers
410 views

How to know that app version changed in GWT?

I have a use case where my GWT application is running on a client browser and I stop my tomcat and update the relevant WAR. What I'd like to happen is that once I load the tomcat every existing client ...
2
votes
0answers
45 views

How do I enable browser caching that will never expire using Spring MVC WebContentInterceptor?

We have setup a cacheMappings property to cache a static HTML file that never changes in our Spring MVC application. <beans:bean id="webContentInterceptor" ...
2
votes
0answers
561 views

Differences of pragma: no-cache and Cache-Control: no-cache

I have two identical instances of the Java EE Application deployed in two different servers. However, in server A (HTTP, pragma: no-cache), page refreshes fine while in server B (HTTPS, Cache-Control: ...
1
vote
1answer
581 views

Avoid back page rendering after sign out in

i've seen: Making sure a web page is not cached, across all browsers enter link description here I've used in JSF 1.2 pages: <meta http-equiv="Cache-control" content="no-store, no-cache, ...
1
vote
3answers
2k views

How can I set HTTP headers in Glassfish server

I want to set the "Expires" HTTP response header when my Glassfish server serves static resources like Javascript and image files. (because to force the browser to cache them) How can I do this in ...
1
vote
1answer
342 views

RFC 1123 date representation with Jetty

We're using jetty as front end http server, with cache policies. I would like to be clear on the requirements: Is the quoted below required? How should I implement this in Java? ...
1
vote
0answers
71 views

JavaFX WebView / WebEngine Cache external JavaScript

Situation: I have a Simple HTML page which have a normal script tag like this <script src="main.js"></script> After i load the html , i update the main.js , and make a reload (throught ...
1
vote
0answers
63 views

GWT GIN to bind many ClientBundle with ImageResource in one picture for fast loading application

I am using GWT in my application. For caching pictures i use ClientBundle with ImageResource. I have many ClientBundles like this: public interface MenuBundle extends ClientBundle { ...
1
vote
0answers
60 views

Does Java Web Start caches resources or ever uses If-Modified-Since?

A browser can cache resources such as a picture, and sends header with If-Modified-Since so a servlet can check and return 304 if it's not modified. So what about Java Web Start? Does it ever do ...
1
vote
0answers
168 views

Versioning Static Resources with Struts2 and Maven

I built a web application using Apache Struts2 and need to version static resources in order to enable caching inside browsers. I have all the resources checked into Subversion. Is there a solution ...
1
vote
1answer
107 views

Preventing JSP from caching [duplicate]

<% response.setHeader("Cache-Control","no-cache"); response.setHeader("Pragma","no-cache"); response.setDateHeader ("Expires", -1); %> <%@ page language="java" ...
0
votes
2answers
482 views

Clock cache algorithm

I want to understand principles of Clock cache replacement policy. What happens whrn it start working? We have for example cache size = 5. So, at first we add 5 random objects to the cache. Am I ...

1 2
15 30 50 per page