Skip to content

Commit

Permalink
extend caching period to 5 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstadler committed Nov 3, 2021
1 parent 027314e commit 3d55788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/controller.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ declare function controller:forward-html($html-template as xs:string, $exist-var
else ()}
</dispatch>,
if(matches($html-template, 'search|register|ajax')) then response:set-header('Cache-Control', 'no-cache')
else response:set-header('Cache-Control', 'max-age=120,public'),
else response:set-header('Cache-Control', 'max-age=300,public'),
response:set-header('ETag', $etag)
)
};
Expand Down

0 comments on commit 3d55788

Please sign in to comment.