Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Possible solution depends on the way you are hosting your application. If you are hosting directly from servlet container, then you can use servlet filter like the one described here:</p> <p><a href="http://seewah.blogspot.com/2009/02/gwt-tips-2-nocachejs-getting-cached-in.html" rel="noreferrer">http://seewah.blogspot.com/2009/02/gwt-tips-2-nocachejs-getting-cached-in.html</a></p> <p>Here are appropriate filters from tadedon library:</p> <p><a href="http://code.google.com/p/tadedon/source/browse/tadedon-servlet/src/main/java/com/xemantic/tadedon/servlet/CacheDisablingFilter.java" rel="noreferrer">http://code.google.com/p/tadedon/source/browse/tadedon-servlet/src/main/java/com/xemantic/tadedon/servlet/CacheDisablingFilter.java</a></p> <p><a href="http://code.google.com/p/tadedon/source/browse/tadedon-servlet/src/main/java/com/xemantic/tadedon/servlet/CacheForcingFilter.java" rel="noreferrer">http://code.google.com/p/tadedon/source/browse/tadedon-servlet/src/main/java/com/xemantic/tadedon/servlet/CacheForcingFilter.java</a></p> <p>And here is guice ServletModule which enables them for the whole guice web application:</p> <p><a href="http://code.google.com/p/tadedon/source/browse/tadedon-gwt/src/main/java/com/xemantic/tadedon/gwt/http/GwtHttpCachingModule.java" rel="noreferrer">http://code.google.com/p/tadedon/source/browse/tadedon-gwt/src/main/java/com/xemantic/tadedon/gwt/http/GwtHttpCachingModule.java</a></p> <p>If you are using some reverse proxy in front of tomcat it would be even simpler. In case of apache (e.g. mod_proxy, mod_jk), and assuming that all the application resources (html, graphics, java scripts, css, etc.) are put on apache, just set these options in apache configuration:</p> <pre><code>&lt;Files *.nocache.*&gt; ExpiresDefault "access" &lt;/Files&gt; &lt;Files *.cache.*&gt; ExpiresDefault "now plus 1 year" &lt;/Files&gt; </code></pre> <p>It is described here:</p> <p><a href="http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html" rel="noreferrer">http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html</a></p> <p>in "Perfect Caching" section. Such deployment scenario assumes that only rpc requests should go through reverse proxy to tomcat. If for some reasons all the application context is proxied to tomcat you can still use apache's <code>LocationMatch</code> directive instead of <code>Files</code> directive.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload