Bug 5371: Force no caching for private pages at the OPAC
In order no to slow too much the browsing, it is certainly not a good idea to add this cache-control value for all pages at the OPAC. This patch just adds where the author found it could be useful. Test plan: 1/ Login at the OPAC 2/ Go on the account page (opac/opac-account.pl) 3/ Click log out 4/ Use the back button of your browser Without this patch you will see the previous page. With this patch, the previous page will be reloaded and you will be redirected to the login form. Signed-off-by: Marc Véron <veron@veron.ch> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
This commit is contained in:
parent
098fd64621
commit
542ab0bce9
|
|
@ -74,5 +74,4 @@ $template->param (
|
|||
accountview => 1
|
||||
);
|
||||
|
||||
output_html_with_http_headers $query, $cookie, $template->output;
|
||||
|
||||
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
|
||||
|
|
|
|||
|
|
@ -135,4 +135,4 @@ $template->param(
|
|||
BIBLIO_RESULTS => $resultsarray,
|
||||
);
|
||||
|
||||
output_html_with_http_headers $query, $cookie, $template->output;
|
||||
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
|
||||
|
|
|
|||
|
|
@ -101,4 +101,4 @@ $template->param(
|
|||
have_hierarchy => $have_hierarchy,
|
||||
);
|
||||
|
||||
output_html_with_http_headers $query, $cookie, $template->output;
|
||||
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
|
||||
|
|
|
|||
|
|
@ -99,4 +99,4 @@ else {
|
|||
|
||||
$template->param( dischargeview => 1 );
|
||||
|
||||
output_html_with_http_headers $input, $cookie, $template->output;
|
||||
output_html_with_http_headers $input, $cookie, $template->output, undef, { force_no_caching => 1 };
|
||||
|
|
|
|||
|
|
@ -244,7 +244,7 @@ $template->param(
|
|||
captcha_digest => md5_base64($captcha)
|
||||
);
|
||||
|
||||
output_html_with_http_headers $cgi, $cookie, $template->output;
|
||||
output_html_with_http_headers $cgi, $cookie, $template->output, undef, { force_no_caching => 1 };
|
||||
|
||||
sub GetHiddenFields {
|
||||
my ($mandatory) = @_;
|
||||
|
|
|
|||
|
|
@ -47,4 +47,4 @@ my $messages = C4::Letters::GetRSSMessages( { borrowernumber => $borrowernumber,
|
|||
$template->param( message_list => $messages,
|
||||
);
|
||||
|
||||
output_html_with_http_headers $query, $cookie, $template->output;
|
||||
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ $template->param(firstname => $borr->{'firstname'},
|
|||
passwdview => 1,
|
||||
);
|
||||
|
||||
output_html_with_http_headers $query, $cookie, $template->output;
|
||||
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
|
||||
|
||||
sub goodkey {
|
||||
my ( $dbh, $borrowernumber, $key ) = @_;
|
||||
|
|
|
|||
|
|
@ -75,4 +75,4 @@ $template->param( 'Ask_data' => '1',
|
|||
'privacyview' => 1,
|
||||
);
|
||||
|
||||
output_html_with_http_headers $query, $cookie, $template->output;
|
||||
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
|
||||
|
|
|
|||
|
|
@ -584,5 +584,4 @@ if (
|
|||
);
|
||||
}
|
||||
|
||||
output_html_with_http_headers $query, $cookie, $template->output;
|
||||
|
||||
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
|
||||
|
|
|
|||
|
|
@ -158,4 +158,4 @@ unless ( $loggedinuser ) {
|
|||
|
||||
$template->param(searchhistoryview => 1);
|
||||
|
||||
output_html_with_http_headers $cgi, $cookie, $template->output;
|
||||
output_html_with_http_headers $cgi, $cookie, $template->output, undef, { force_no_caching => 1 };
|
||||
|
|
|
|||
|
|
@ -398,5 +398,4 @@ $template->param(
|
|||
OpacHoldNotes => C4::Context->preference('OpacHoldNotes'),
|
||||
);
|
||||
|
||||
output_html_with_http_headers $query, $cookie, $template->output;
|
||||
|
||||
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
|
||||
|
|
|
|||
Loading…
Reference in New Issue