Bugzilla – Attachment 10333 Details for
Bug 8255
Local cover images should be cacheable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8255: allow local cover images to be cached
Bug-8255-allow-local-cover-images-to-be-cached.patch (text/plain), 1.41 KB, created by
Dobrica Pavlinusic
on 2012-06-17 16:22:48 UTC
(
hide
)
Description:
Bug 8255: allow local cover images to be cached
Filename:
MIME Type:
Creator:
Dobrica Pavlinusic
Created:
2012-06-17 16:22:48 UTC
Size:
1.41 KB
patch
obsolete
>From f286ae890881664db795c87c92063488d5229bcc Mon Sep 17 00:00:00 2001 >From: Jared Camins-Esakov <jcamins@cpbibliography.com> >Date: Fri, 15 Jun 2012 13:59:55 -0400 >Subject: [PATCH] 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> >--- > catalogue/image.pl | 3 +-- > opac/opac-image.pl | 3 +-- > 2 files changed, 2 insertions(+), 4 deletions(-) > >diff --git a/catalogue/image.pl b/catalogue/image.pl >index 4fa77e9..ff74cbe 100755 >--- a/catalogue/image.pl >+++ b/catalogue/image.pl >@@ -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; > >diff --git a/opac/opac-image.pl b/opac/opac-image.pl >index ba554c7..e2dc556 100755 >--- a/opac/opac-image.pl >+++ b/opac/opac-image.pl >@@ -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; > >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8255
:
10307
| 10333