[
https://issues.apache.org/jira/browse/WICKET-750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alastair Maw resolved WICKET-750.
---------------------------------
Resolution: Fixed
Fixed in r561725.
> Calling setCacheable(false) on WebResource don't change header properties in
> WebResponse
> ----------------------------------------------------------------------------------------
>
> Key: WICKET-750
> URL: https://issues.apache.org/jira/browse/WICKET-750
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.0-beta2
> Environment: Linux Ubuntu / Eclipse 3.2 / jdk 5.0
> Reporter: Pierre Coquentin
> Assignee: Alastair Maw
> Priority: Minor
> Fix For: 1.3.0-beta3
>
>
> It's missing "else" parts in the method
> org.apache.wicket.markup.html.WebResource.setHeaders(WebResponse response)
> like a response.setHeader("Cache-Control", "no-cache, must-revalidate");
> protected void setHeaders(WebResponse response)
> {
> if (isCacheable())
> {
> // If time is set also set cache headers.
> response.setDateHeader("Expires", System.currentTimeMillis() + (3600 *
> 1000));
> response.setHeader("Cache-Control","max-age=" + 3600);
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.