[
https://issues.apache.org/jira/browse/WICKET-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13114084#comment-13114084
]
Peter Ertl commented on WICKET-4083:
------------------------------------
It seems there is no corresponding counterpart for header value "no-cache". I
don't like to elimimate an eventual "no-cache" value with an empty header like
this:
Pragma:
Some (broken) servers could have a problem with that...
Also
setHeader("Pragma", null)
works on jetty but could be fragile on some others servlet containers.
Also there's no way in the servlet api to remove an header completely. So I
will add
Pragma: cache
which clearly signal our intention. Even in the case of an unknown value it
will not hurt.
@Rodolfo: Thanks for reporting!
> WebResponse#enableCaching does not take care of a possible "Pragma: no-cache"
> header
> ------------------------------------------------------------------------------------
>
> Key: WICKET-4083
> URL: https://issues.apache.org/jira/browse/WICKET-4083
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Reporter: Rodolfo Hansen
> Assignee: Peter Ertl
> Priority: Minor
>
> in WebResponse#enableCaching
> a call to setHeader("Pragma", "") might be a good idea to assure that no
> conflicting http header information is being sent out.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira