IE image caching: performance issue during ajax updates
-------------------------------------------------------

                 Key: WICKET-1858
                 URL: https://issues.apache.org/jira/browse/WICKET-1858
             Project: Wicket
          Issue Type: Improvement
          Components: wicket
    Affects Versions: 1.4-M3
         Environment: IE 6
            Reporter: Sergey Derugo
            Priority: Critical


Steps to reproduce:

1. Create table(let's say 50 rows) using any repeater.
2. Add AjaxButton to each row, for example: <img src="../images/edit.gif" 
wicket:id="editButton" alt="Edit"/> - when user clicks on this button - the 
application also refreshes the entire table.
3. Since IE cannot cache images during AJAX updates it will take more time to 
re-load all images.

Ajax AjaxRequestTarget turns off caching (i.e. sets header "Cache-Control" to 
"no-cache") as the result the browser must send many requests to the server. 
See details here http://www.bazon.net/mishoo/articles.epl?art_id=958

Workaround:
Create Filter that will override the caching *only* for images, for example: if 
URL matches *.gif then the filter will set Cache-Control : 
public,max-age=2592000,post-check=2592000,pre-check=2592000

Possible solution:
Wicket shouldn't override caching settings for images (*.gif, *.png etc.)
Wicket shouldn't offer 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to