Let My Account pages be cached for offline use
authorDan Scott <dscott@laurentian.ca>
Fri, 14 Apr 2017 03:59:08 +0000 (23:59 -0400)
committerDan Scott <dscott@laurentian.ca>
Fri, 14 Apr 2017 04:05:01 +0000 (00:05 -0400)
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 <dscott@laurentian.ca>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm

index 6aa1f58..6548edc 100644 (file)
@@ -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|;