Bug 8255: allow local cover images to be cached

At the moment, local cover images cannot be cached by the web browser
or any intermediate reverse proxies. This results in an unnecessary
load on the server, and is entirely unnecessary.

Signed-off-by: Dobrica Pavlinusic <dpavlin@rot13.org>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
Jared Camins-Esakov 2012-06-15 13:59:55 -04:00 committed by Paul Poulain
parent 068e5be639
commit 4afe8b00a1
2 changed files with 2 additions and 4 deletions

View File

@ -92,8 +92,7 @@ if ( C4::Context->preference("LocalCoverImages") ) {
}
print $data->header(
-type => $mimetype,
-'Cache-Control' => 'no-store',
-expires => 'now',
-expires => '+30m',
-Content_Length => length($image)
), $image;

View File

@ -92,8 +92,7 @@ if ( C4::Context->preference("OPACLocalCoverImages") ) {
}
print $data->header(
-type => $mimetype,
-'Cache-Control' => 'no-store',
-expires => 'now',
-expires => '+30m',
-Content_Length => length($image)
), $image;