https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41929

Laura Escamilla <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #193937|0                           |1
        is obsolete|                            |

--- Comment #2 from Laura Escamilla <[email protected]> ---
Created attachment 194015
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=194015&action=edit
Bug 41929: Enable Cache-Control for UploadedFiles

This patch adds Cache-Control header to Koha::UploadedFile->httpheaders.

Cache-Control is set public and max-age at 12 hours for uploaded files that are
marked as public, ie. retrieveable by opac-retrieve-file.pl. This reduces
server
load as browsers are allowed to cache the files. Useful for libraries that
upload images and fonts via the upload tool, and serve them publicly in OPAC.

As for files not marked public by the upload tool, Cache-Control tells browsers
not to cache these files, as they may contain private and sensitive
information.

To test:
1. prove t/db_dependent/Upload.t

Signed-off-by: Laura_Escamilla <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to