[
https://jira.jboss.org/browse/GTNPORTAL-1455?page=com.atlassian.jira.plug...
]
Thomas Heute commented on GTNPORTAL-1455:
-----------------------------------------
With Firefox 3.6.12 on Linux I never get the 304.
Not sure why, the response look like:
Server Apache-Coyote/1.1
X-Powered-By Servlet 2.5; JBoss-5.0/JBossWeb-2.1
Cache-Control max-age=2592000,s-maxage=2592000
Accept-Ranges bytes
Etag W/"1161-1290537340000"
Last-Modified Tue, 23 Nov 2010 18:35:40 GMT
Content-Type text/javascript
Content-Length 1161
Date Tue, 23 Nov 2010 18:40:42 GMT
(Same issue for CSS, JS and images)
But the subsequent request never set the if-modified-since (could be a web browser issue
but that's something to investigate IMO)
Request is:
Host localhost:8080
User-Agent Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101027
Fedora/3.6.12-1.fc14 Firefox/3.6.12
Accept */*
Accept-Language fr-fr,en-us;q=0.7,en;q=0.3
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 115
Connection keep-alive
Referer
http://localhost:8080/portal/public/classic/
Cookie JSESSIONID=FC262109986AF055DC8E61144A87EADC
CSS file are not cached (in the browser)
----------------------------------------
Key: GTNPORTAL-1455
URL:
https://jira.jboss.org/browse/GTNPORTAL-1455
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Performance
Affects Versions: 3.1.0-GA
Environment: GateIn GA / EPP and eXo WCM
Reporter: Tugdual Grall
Assignee: Vu Viet Phuong
Labels: sprint_38, worked
Attachments: GTNPORTAL-1455-20100926.patch, GTNPORTAL-1455-20101123.patch, Screen
shot 2010-09-02 at 6.18.02 PM.png
GateIn should improve browser caching of all the ressources.
It looks like all the images and Javascript are properly cached, but the CSS are not
cached.
It is an issue since the CSS of GateIn are heavy.
Tests are done using GateIn 3.1 using the home page:
http://127.0.0.1:8080/portal/public/classic/
See attached image of YSlow I stats.
Using Chrome audit feature:
Leverage browser caching (21)
The following cacheable resources have a short freshness lifetime:
Stylesheet-lt.css
1283438768920-lt.css
DefaultStylesheet-lt.css
merged.js
I18NMessage.js
MessageResource_en.js
Logo.gif
Key.gif
LeftNavigation.gif
RightNavigation.gif
MiddleNavigation.gif
NavigationTab.gif
DefaultNodeIcon.gif
Home.gif
BgRightColumn.gif
HomePagePortlet.gif
Line.gif
BgRepeat.gif
BgPagebody.gif
Button.gif
The following resources are explicitly non-cacheable. Consider making them cacheable if
possible:
classic
Leverage proxy caching (14)
Consider adding a "Cache-Control: public" header to the following resources:
Logo.gif
Key.gif
LeftNavigation.gif
RightNavigation.gif
MiddleNavigation.gif
NavigationTab.gif
DefaultNodeIcon.gif
Home.gif
BgRightColumn.gif
HomePagePortlet.gif
Line.gif
BgRepeat.gif
BgPagebody.gif
Button.gif
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira