Skip to content

Commit

Permalink
updated cache headers
Browse files Browse the repository at this point in the history
  • Loading branch information
frwiqueueit authored Jun 11, 2020
1 parent 73bad9b commit 5547a89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class ResourceController < ApplicationController

if(validationResult.doRedirect)
#Adding no cache headers to prevent browsers to cache requests
response.headers["Cache-Control"] = "no-cache, no-store, must-revalidate"
response.headers["Cache-Control"] = "no-cache, no-store, must-revalidate, max-age=0"
response.headers["Pragma"] = "no-cache"
response.headers["Expires"] = "Fri, 01 Jan 1990 00:00:00 GMT"
#end
Expand Down Expand Up @@ -230,7 +230,7 @@ class ResourceController < ApplicationController

if(validationResult.doRedirect)
#Adding no cache headers to prevent browsers to cache requests
response.headers["Cache-Control"] = "no-cache, no-store, must-revalidate"
response.headers["Cache-Control"] = "no-cache, no-store, must-revalidate, max-age=0"
response.headers["Pragma"] = "no-cache"
response.headers["Expires"] = "Fri, 01 Jan 1990 00:00:00 GMT"
#end
Expand Down

0 comments on commit 5547a89

Please sign in to comment.