From 08a3808fa72b9865b5c6d6b0c4dc3a7748a3a380 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Thu, 13 Apr 2017 23:59:08 -0400 Subject: [PATCH] Let My Account pages be cached for offline use If people are offline, they just might want to be able to access their account pages anyway. Let's not hard-code the strictest of settings into the handler. Signed-off-by: Dan Scott --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm index 6aa1f5811d..6548edcd9e 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm @@ -184,8 +184,7 @@ sub load { return $self->redirect_auth unless $self->editor->requestor; # Don't cache anything requiring auth for security reasons - $self->apache->headers_out->add("cache-control" => "no-store, no-cache, must-revalidate"); - $self->apache->headers_out->add("expires" => "-1"); + $self->apache->headers_out->add("cache-control" => "no-cache, must-revalidate"); return $self->load_email_record if $path =~ m|opac/record/email|; -- 2.11.0