Hi,
We are using AddResource to add stylesheet dynamically, like:
 
addResource.addStyleSheet(context, AddResource.HEADER_BEGIN, "/main.css");
 
In the generated HTML, the current session id is in the URL, like:
 
<link rel="stylesheet" 
href="/main.css;jsessionid=965804C1F45636F4BBD825591EE74E3C" type="text/css" />
 
This breaks web browser caching. Style sheet is static. We want browser to 
cache it for one month. But adding session id breaks browser caching because 
session id is dynamic and the stylesheet url will change from one session to 
another.
 
Is there a way to prevent session id being added to the URL?  we use 
cookie-based session tracking , if cookie is disabled, URL rewriting session  
tracking will be used.
 
Thanks for help.
Dave



      

Reply via email to