Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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>
  • Loading branch information...
commit 4afe8b00a1cb475648fb92f63c694b28d985513d 1 parent 068e5be
@jcamins jcamins authored PaulPoulain committed
Showing with 2 additions and 4 deletions.
  1. +1 −2  catalogue/image.pl
  2. +1 −2  opac/opac-image.pl
View
3  catalogue/image.pl
@@ -92,8 +92,7 @@ =head1 DESCRIPTION
}
print $data->header(
-type => $mimetype,
- -'Cache-Control' => 'no-store',
- -expires => 'now',
+ -expires => '+30m',
-Content_Length => length($image)
), $image;
View
3  opac/opac-image.pl
@@ -92,8 +92,7 @@ =head1 DESCRIPTION
}
print $data->header(
-type => $mimetype,
- -'Cache-Control' => 'no-store',
- -expires => 'now',
+ -expires => '+30m',
-Content_Length => length($image)
), $image;
Please sign in to comment.
Something went wrong with that request. Please try again.