Marek Posolda created GTNPORTAL-2338:
----------------------------------------
Summary: Images are processed by PortalRequestHandler
Key: GTNPORTAL-2338
URL:
https://issues.jboss.org/browse/GTNPORTAL-2338
Project: GateIn Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Performance
Affects Versions: 3.2.0-Beta01
Reporter: Marek Posolda
Fix For: 3.2.0-CR01
For simulation the problem, it's sufficient to point browser to
http://localhost:8080/portal/classic and log all HTTP requests sent by browser. It can be
seen that HTTP requests for obtain images (*.jpg, *.gif, favicon.ico, ...) are repeated
during each HTTP request to portal page and HTTP response contains header
"Cache-control: no-cache" for all images.
Problem is caused by incorrect mapping of staticResource handler in controller.xml .
StaticResource handler is mapped after PortalRequestHandler, which means that all images
are firstly processed by PortalRequestHandler. This is non-sense and it results that
incorrect HTTP header "Cache-control: no-cache" is used for images and some
non-sense operations are called (like calling DataStorage.getPortalConfig with argument
"favicon.ico" ).
Processing by PortalRequestHandler is unsuccessful and so StaticResourceHandler is used
after that and images are successfuly returned, but incorrect Cache-control is already
set.
Thing is that images should be processed only by StaticResourceHandler and not by
PortalRequestHandler at all.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira