Skip to content

Commit

Permalink
updated cache headers
Browse files Browse the repository at this point in the history
  • Loading branch information
frwiqueueit committed Jun 11, 2020
1 parent da96a75 commit 11f6d86
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ The following method is all that is needed to validate that a user has been thro
if (validationResult.doRedirect()) {
//Adding no cache headers to prevent browsers to cache requests
response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); // HTTP 1.1
response.setHeader("Pragma", "no-cache"); // HTTP 1.0
response.setDateHeader("Expires", 0); // Proxies.
response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate, max-age=0");
response.setHeader("Pragma", "no-cache");
response.setHeader("Expires", "Fri, 01 Jan 1990 00:00:00 GMT");
//end
//Send the user to the queue - either because hash was missing or because is was invalid
response.sendRedirect(validationResult.getRedirectUrl());
Expand Down Expand Up @@ -139,9 +139,9 @@ The following is an example of how to specify the configuration in code:
if (validationResult.doRedirect()) {
//Adding no cache headers to prevent browsers to cache requests
response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); // HTTP 1.1
response.setHeader("Pragma", "no-cache"); // HTTP 1.0
response.setDateHeader("Expires", 0); // Proxies.
response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate, max-age=0");
response.setHeader("Pragma", "no-cache");
response.setHeader("Expires", "Fri, 01 Jan 1990 00:00:00 GMT");
//end
//Send the user to the queue - either becuase hash was missing or becuase is was invalid
response.sendRedirect(validationResult.getRedirectUrl());
Expand Down

0 comments on commit 11f6d86

Please sign in to comment.