7 Replies Latest reply on Nov 11, 2009 1:45 PM by Nick Belaevski

    IE8 cache problem

    soso xuc Newbie

      Im using Richfaces 3.3.2 SR1 and Jboss 4.2.3 server.

      With FF3.5 all images, js and css files are cached (i use httpwatch to see this).

      In case of IE8 most of files are not cached.

      How to force IE to cache files ?

      Here is my web.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app id="WebApp_ID" version="2.5"
       xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
       <display-name>WebApp</display-name>
       <context-param>
       <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
       <param-value>.xhtml</param-value>
       </context-param>
       <context-param>
       <param-name>facelets.REFRESH_PERIOD</param-name>
       <param-value>-1</param-value>
       </context-param>
       <context-param>
       <param-name>org.ajax4jsf.SKIN</param-name>
       <param-value>classic</param-value>
       </context-param>
      
       <context-param>
       <param-name>org.ajax4jsf.xmlfilter.forcenotrf</param-name>
       <param-value>false</param-value>
       </context-param>
      
       <filter>
       <display-name>Ajax4jsf Filter</display-name>
       <filter-name>ajax4jsf</filter-name>
       <filter-class>org.ajax4jsf.Filter</filter-class>
      
       <init-param>
       <param-name>enable-cache</param-name>
       <param-value>true</param-value>
       </init-param>
       <init-param>
       <param-name>forcenotrf</param-name>
       <param-value>false</param-value>
       </init-param>
       <init-param>
       <param-name>forceparser</param-name>
       <param-value>false</param-value>
       </init-param>
       <init-param>
       <param-name>maxRequestSize</param-name>
       <param-value>2000000</param-value>
       </init-param>
       </filter>
      
       <context-param>
       <param-name>org.ajax4jsf.xmlparser.ORDER</param-name>
       <param-value>NEKO</param-value>
       </context-param>
       <context-param>
       <param-name>org.ajax4jsf.xmlparser.NEKO</param-name>
       <param-value>.*\..*</param-value>
       </context-param>
      
       <context-param>
       <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
       <param-value>true</param-value>
       </context-param>
      
       <context-param>
       <param-name>org.ajax4jsf.DEFAULT_EXPIRE</param-name>
       <param-value>2592000</param-value>
       </context-param>
      
      
       <filter-mapping>
       <filter-name>ajax4jsf</filter-name>
       <servlet-name>Faces Servlet</servlet-name>
       <dispatcher>REQUEST</dispatcher>
       <dispatcher>FORWARD</dispatcher>
       <dispatcher>INCLUDE</dispatcher>
       </filter-mapping>
       <servlet>
       <servlet-name>Faces Servlet</servlet-name>
       <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
       <load-on-startup>1</load-on-startup>
       </servlet>
       <servlet>
       <display-name>DownloadServlet</display-name>
       <servlet-name>DownloadServlet</servlet-name>
       <servlet-class>docflow.view.servlets.DownloadServlet</servlet-class>
       </servlet>
       <servlet-mapping>
       <servlet-name>Faces Servlet</servlet-name>
       <url-pattern>*.jsf</url-pattern>
       </servlet-mapping>
       <servlet-mapping>
       <servlet-name>DownloadServlet</servlet-name>
       <url-pattern>/DownloadServlet</url-pattern>
       </servlet-mapping>
       <welcome-file-list>
       <welcome-file>/redirect.html</welcome-file>
       </welcome-file-list>
      </web-app>


      here is httpwatch's log


      Result URL
      304 /a4j/s/3_3_2.SR1org/richfaces/renderkit/html/css/basic_classes.xcss/DATB/eAFrvajdHLp8hjQAEgwDtA__.jsf
      304 /a4j/s/3_3_2.SR1org/richfaces/renderkit/html/css/extended_classes.xcss/DATB/eAFrvajdHLp8hjQAEgwDtA__.jsf
      304 /a4j/g/3_3_2.SR1org.ajax4jsf.javascript.AjaxScript.jsf
      304 /a4j/g/3_3_2.SR1org.ajax4jsf.javascript.PrototypeScript.jsf
      304 /a4j/g/3_3_2.SR1org.ajax4jsf.javascript.ImageCacheScript.jsf
      304 /a4j/g/3_3_2.SR1org/ajax4jsf/javascript/scripts/form.js.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/browser_info.js.jsf
      304 /a4j/g/3_3_2.SR1scripts/simpleTogglePanel.js.jsf
      304 /a4j/s/3_3_2.SR1css/simpleTogglePanel.xcss/DATB/eAFrvajdHLp8hjQAEgwDtA__.jsf
      304 /a4j/s/3_3_2.SR1css/table.xcss/DATB/eAFrvajdHLp8hjQAEgwDtA__.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/utils.js.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/modalPanel.js.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/modalPanelBorders.js.jsf
      304 /a4j/s/3_3_2.SR1org/richfaces/renderkit/html/css/modalPanel.xcss/DATB/eAFrvajdHLp8hjQAEgwDtA__.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/events.js.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/json/json-dom.js.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/scriptaculous/effects.js.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/jquery/jquery.js.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/JQuerySpinBtn.js.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/calendar.js.jsf
      304 /a4j/s/3_3_2.SR1org/richfaces/renderkit/html/css/calendar.xcss/DATB/eAFrvajdHLp8hjQAEgwDtA__.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/jquery.utils.js.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/json/json-mini.js.jsf
      304 /a4j/g/3_3_2.SR1org.ajax4jsf.javascript.DnDScript.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/dnd/dnd-common.js.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/dnd/dnd-dropzone.js.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/form.js.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/script/controlUtils.js.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/common-scrollable-data-table.js.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/extended-data-table.js.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/drag-indicator.js.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/ext-dt-drag-indicator.js.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/ext-dt-simple-draggable.js.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/ext-dt-simple-dropzone.js.jsf
      304 /a4j/s/3_3_2.SR1org/richfaces/renderkit/html/css/dragIndicator.xcss/DATB/eAFrvajdHLp8hjQAEgwDtA__.jsf
      304 /a4j/s/3_3_2.SR1css/extendedDataTable.xcss/DATB/eAFrvajdHLp8hjQAEgwDtA__.jsf
      304 /a4j/g/3_3_2.SR1scripts/menu.js.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/context-menu.js.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/available.js.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/menu.js.jsf
      304 /a4j/s/3_3_2.SR1css/menucomponents.xcss/DATB/eAFrvajdHLp8hjQAEgwDtA__.jsf
      304 /a4j/s/3_3_2.SR1css/panel.xcss/DATB/eAFrvajdHLp8hjQAEgwDtA__.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/controls-scrollable-data-table.js.jsf
      304 /a4j/s/3_3_2.SR1org/richfaces/renderkit/html/css/scrollable-data-table.xcss/DATB/eAFrvajdHLp8hjQAEgwDtA__.jsf
      304 /a4j/g/3_3_2.SR1scripts/tabPanel.js.jsf
      304 /a4j/s/3_3_2.SR1css/tabPanel.xcss/DATB/eAFrvajdHLp8hjQAEgwDtA__.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/tree.js.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/tree-selection.js.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/tree-item.js.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/tree-item-dnd.js.jsf
      304 /a4j/s/3_3_2.SR1css/tree.xcss/DATB/eAFrvajdHLp8hjQAEgwDtA__.jsf
      304 /a4j/g/3_3_2.SR1scripts/panelbar.js.jsf
      304 /a4j/s/3_3_2.SR1css/panelbar.xcss/DATB/eAFrvajdHLp8hjQAEgwDtA__.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/js/FileUpload.js.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/js/swfobject.js.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/js/progressBar.js.jsf
      304 /a4j/s/3_3_2.SR1org/richfaces/renderkit/html/css/fileUpload.xcss/DATB/eAFrvajdHLp8hjQAEgwDtA__.jsf
      304 /a4j/s/3_3_2.SR1org/richfaces/renderkit/html/css/progressBar.xcss/DATB/eAFrvajdHLp8hjQAEgwDtA__.jsf
      304 /a4j/g/3_3_2.SR1scripts/tiny_mce/tiny_mce_src.js.jsf
      304 /a4j/g/3_3_2.SR1scripts/editor.js.jsf
      304 /a4j/s/3_3_2.SR1css/editor.xcss/DATB/eAFrvajdHLp8hjQAEgwDtA__.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/skinning.js.jsf
      304 /Resources/Styles.css
      304 /Resources/utils.mia.js
      ERROR_INTERNET_INVALID_URL http://:/
      ERROR_INTERNET_INVALID_URL http://:/
      304 /Resources/Images/loading.gif
      304 /Resources/Images/new.png
      304 /Resources/Images/refreshs.gif
      304 /Resources/Images/folder.png
      304 /Resources/Images/close.png
      304 /Resources/Images/docBg.jpg
      304 /a4j/g/3_3_2.SR1org.richfaces.renderkit.html.iconimages.CalendarIcon/DATB/eAHbWurFMOs5AAnQAvY_.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/images/s.gif.jsf
      304 /Resources/Images/header.png
      304 /a4j/g/3_3_2.SR1images/spacer.gif.jsf
      304 /a4j/g/3_3_2.SR1org.richfaces.renderkit.html.images.TreePlusImage/DATB/eAH7!!!!q2vHGBgYACSzBYQ_.jsf
      304 /a4j/g/3_3_2.SR1org.richfaces.renderkit.html.images.TreeMinusImage/DATB/eAH7!!!!q2vHGBgYACSzBYQ_.jsf
      304 /a4j/g/3_3_2.SR1images/iconFolder.gif.jsf
      304 /a4j/g/3_3_2.SR1images/iconLeaf.gif.jsf
      304 /a4j/g/3_3_2.SR1org.richfaces.renderkit.html.GradientA/DATB/eAF7emTy1lIvJgASigOz.jsf
      304 /a4j/g/3_3_2.SR1org.richfaces.renderkit.images.TabStripeImage/DATB/eAE7cOAAAASDAkE_.jsf
      304 /a4j/g/3_3_2.SR1org.richfaces.renderkit.images.TabGradientA/DATB/eAF7vXf-p0-fmQAWgwUh.jsf
      304 /a4j/g/3_3_2.SR1org.richfaces.renderkit.images.TabGradientB/DATB/eAH79Onz673zmQAYMwUh.jsf
      304 /Resources/Images/formBg.gif
      304 /a4j/g/3_3_2.SR1org.richfaces.renderkit.html.images.TreeLineLastImage/DATB/eAH7!!!!q2vHGBgYACSzBYQ_.jsf
      304 /a4j/g/3_3_2.SR1org.richfaces.renderkit.html.images.TreeLineCollapsedImage/DATB/eAH7!!!!q2vHGBgYACSzBYQ_.jsf
      304 /a4j/g/3_3_2.SR1org.richfaces.renderkit.html.images.TreeLineNodeImage/DATB/eAH7!!!!q2vHGBgYACSzBYQ_.jsf
      304 /a4j/g/3_3_2.SR1org.richfaces.renderkit.html.images.TreeLineImage/DATB/eAH7!!!!q2vHGBgYACSzBYQ_.jsf
      ERROR_INTERNET_INVALID_URL http://:/
      304 /a4j/g/3_3_2.SR1org.richfaces.renderkit.html.images.UploadButtonBgGradient/DATB/eAH78eHVq2vHmAAYuQVb.jsf
      304 /a4j/g/3_3_2.SR1org.richfaces.renderkit.html.iconimages.ScrollableDataTableIconSplit/DATB/eAH7!!!!1lIvABJKBHI_.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/images/spacer.gif.jsf
      304 /Resources/Images/panelbarBg.gif
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/images/ico_add.gif.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/images/ico_clear_dis.gif.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/images/ico_start.gif.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/images/ico_stop.gif.jsf
      (Cache) /a4j/g/3_3_2.SR1scripts/tiny_mce/langs/en.js.jsf
      (Cache) /a4j/g/3_3_2.SR1scripts/tiny_mce/themes/advanced/editor_template_src.js.jsf
      (Cache) /a4j/g/3_3_2.SR1scripts/tiny_mce/plugins/table/editor_plugin_src.js.jsf
      (Cache) /a4j/g/3_3_2.SR1scripts/tiny_mce/plugins/paste/editor_plugin_src.js.jsf
      (Cache) /a4j/g/3_3_2.SR1scripts/tiny_mce/plugins/emotions/editor_plugin_src.js.jsf
      (Cache) /a4j/g/3_3_2.SR1scripts/tiny_mce/plugins/preview/editor_plugin_src.js.jsf
      (Cache) /a4j/g/3_3_2.SR1scripts/tiny_mce/plugins/print/editor_plugin_src.js.jsf
      (Cache) /a4j/g/3_3_2.SR1scripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js.jsf
      (Cache) /a4j/g/3_3_2.SR1scripts/tiny_mce/themes/advanced/langs/en.js.jsf
      304 /a4j/g/3_3_2.SR1scripts/tiny_mce/themes/advanced/skins/richfaces/ui.xcss/DATB/eAFrvajdHLp8hjQAEgwDtA__.jsf
      304 /a4j/g/3_3_2.SR1scripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.xcss/DATB/eAFrvajdHLp8hjQAEgwDtA__.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/images/col-move-top.gif.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/images/col-move-bottom.gif.jsf
      304 /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/images/loading.gif.jsf
      304 /a4j/g/3_3_2.SR1org.richfaces.renderkit.html.images.ProgressBarAnimatedBg/DATB/eAFjmPUcAAIeAYI_.jsf
      304 /Resources/Images/buttonOwer.gif
      (Cache) /a4j/g/3_3_2.SR1org.richfaces.renderkit.html.images.EditorAdvancedThemeIcons/DATB/eAH78eEVw6znBw4cYGBgAAA1gQaU.jsf
      (Cache) /a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/img/icons.gif.jsf
      (Cache) /a4j/g/3_3_2.SR1scripts/tiny_mce/themes/advanced/skins/richfaces/content.xcss/DATB/eAFrvajdHLp8hjQAEgwDtA__.jsf