[JSF/HTML/JAVA] Pb de mise en cache img,css, js par mon navigateur
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:
1 2 3 4 5 6 7 8 9 10 11 12 13
| <!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:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
| <?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/web-app_2_5.xsd">
<!-- 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 :ccool: