Bonjour,
Les images, css et javascripts ne sont pas mis en cache par mon navigateur
j'ai une web application en jsf:
Ma jsp
Code :
- <!DOCTYPE html><%@page contentType="text/html"%><%@page pageEncoding="UTF-8"%><%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %><%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
- <f:view>
- <html>
- <head>
- <title><h:outputText value="#{properties.HOMEPAGE_TITLE}"/></title>
- <link rel="stylesheet" type="text/css" href="resources/css/homePageLeftMenuTopMenu.css"/>
- <link rel="stylesheet" type="text/css" href="resources/css/TrackingTable.css"/>
- <link rel="stylesheet" type="text/css" href="resources/css/EnsForm.css"/>
- <script type="text/javascript" src="resources/js/jquery.js"></script>
- <script type="text/javascript" src="resources/js/jquery-ui.js"></script>
- <script type="text/javascript" src="resources/js/TrackingForAll.js"></script>
- <script type="text/javascript" src="resources/js/Homepage.js"></script>
- ...
|
mon web.xml:
Code :
- <?xml version="1.0" encoding="UTF-8"?>
- <web-app 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/ [...] ">
- <!-- Config param -->
- <context-param>
- <param-name>javax.faces.PROJECT_STAGE</param-name>
- <param-value>Production</param-value>
- </context-param>
- <context-param>
- <param-name>javax.faces.FACELETS_REFRESH_PERIOD</param-name>
- <param-value>-1</param-value>
- </context-param>
- <context-param>
- <param-name>org.apache.myfaces.CHECK_ID_PRODUCTION_MODE</param-name>
- <param-value>false</param-value>
- </context-param>
- <context-param>
- <param-name>org.apache.myfaces.VIEW_UNIQUE_IDS_CACHE_ENABLED</param-name>
- <param-value>true</param-value>
- </context-param>
- <context-param>
- <param-name>org.apache.myfaces.SAVE_STATE_WITH_VISIT_TREE_ON_PSS</param-name>
- <param-value>false</param-value>
- </context-param>
- <!--context-param>
- <param-name>
- com.sun.faces.externalizeJavaScript
- </param-name>
- <param-value>true</param-value>
- </context-param
- <context-param>
- <param-name>com.sun.faces.defaultResourceMaxAge</param-name>
- <param-value>2592000000</param-value>
- </context-param>
- <context-param>
- <param-name>org.apache.myfaces.RESOURCE_MAX_TIME_EXPIRES</param-name>
- <param-value>2592000000</param-value>
- </context-param-->
- <context-param>
- <param-name>facelets.BUFFER_SIZE</param-name>
- <param-value>200000</param-value>
- </context-param>
- <context-param>
- <param-name>com.sun.faces.verifyObjects</param-name>
- <param-value>false</param-value>
- </context-param>
- <context-param>
- <param-name>com.sun.faces.validateXml</param-name>
- <param-value>true</param-value>
- </context-param>
- <context-param>
- <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
- <param-value>server</param-value>
- </context-param>
- <context-param>
- <param-name>com.sun.faces.enableRestoreView11Compatibility</param-name>
- <param-value>true</param-value>
- </context-param>
|
ma reponse header:
Pragma No-cache
Cache-Control no-cache
Expires Thu, 01 Jan 1970 01:00:00 CET
merci de votre aide
Message édité par schum-hacker le 04-07-2013 à 16:16:31
---------------
FEED: http://forum.hardware.fr/forum2.ph [...] w=0&nojs=0