You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Musachy Barroso (JIRA)" <ji...@apache.org> on 2008/12/01 17:48:36 UTC

[jira] Resolved: (WW-2665) Add allowCaching attribute to StreamResult

     [ https://issues.apache.org/struts/browse/WW-2665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso resolved WW-2665.
---------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.2.x)
                   2.1.3

merged, + a test for it. Thanks for the patch!

> Add allowCaching attribute to StreamResult
> ------------------------------------------
>
>                 Key: WW-2665
>                 URL: https://issues.apache.org/struts/browse/WW-2665
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Dispatch Filter
>            Reporter: Al Sutton
>             Fix For: 2.1.3
>
>         Attachments: allowCaching_on_streams.patch, allowCaching_on_streams.patch
>
>
> The attached patch adds the attribute "allowCaching" to results that use StreamResult. The allowCaching attributes lets developers configure whether or not the stream result should be cached.
> If set to true (which is the default) the result can be cached by any downstream proxy or the client, if set to false the following headers are added to the response in order to discourage caching by proxies and clients;
> Pragma: no-cache
> Cache-Control: no-cache

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