Skip to content

Commit

Permalink
version 3.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
frwiqueueit committed May 26, 2020
1 parent 78096f2 commit 4681398
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Examples/ApacheHandlerUsingConfigFromFile.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
-- SetEnv QUEUEIT_COOKIE_OPTIONS_HTTPONLY "false"
-- SetEnv QUEUEIT_COOKIE_OPTIONS_SECURE "false"
-- SetEnv QUEUEIT_COOKIE_OPTIONS_SAMESITE "none"
-- LuaMapHandler "{URI_PATTERN}" "{APP_FOLDER}/ApacheHandlerUsingConfigFromFile.lua"
-- LuaMapHandler "{URI_PATTERN}" "{APP_FOLDER}/Handlers/ApacheHandlerUsingConfigFromFile.lua"
-- LuaPackagePath "{APP_FOLDER}/SDK/?.lua"
-- LuaPackagePath "{APP_FOLDER}/Helpers/?/?.lua"
-- LuaPackagePath "{APP_FOLDER}/Handlers/?.lua"
Expand Down
12 changes: 6 additions & 6 deletions Handlers/KnownUserApacheHandler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,6 @@ local function handle(customerId, secretKey, config, isIntegrationConfig, reques
-- ********************************************************************************
-- END Implement required helpers

--Adding no cache headers to prevent browsers to cache requests
request_rec.err_headers_out["Cache-Control"] = "no-cache, no-store, must-revalidate"
request_rec.err_headers_out["Pragma"] = "no-cache"
request_rec.err_headers_out["Expires"] = "Fri, 01 Jan 1990 00:00:00 GMT"
--end

local queueitToken = request_rec:parseargs()["queueittoken"]
local fullUrl = iHelpers.request.getAbsoluteUri()
local currentUrlWithoutQueueitToken = fullUrl:gsub("([\\%?%&])(" .. knownUser.QUEUEIT_TOKEN_KEY .. "=[^&]*)", "")
Expand All @@ -140,6 +134,12 @@ local function handle(customerId, secretKey, config, isIntegrationConfig, reques
end

if (validationResult:doRedirect()) then
--Adding no cache headers to prevent browsers to cache requests
request_rec.err_headers_out["Cache-Control"] = "no-cache, no-store, must-revalidate"
request_rec.err_headers_out["Pragma"] = "no-cache"
request_rec.err_headers_out["Expires"] = "Fri, 01 Jan 1990 00:00:00 GMT"
--end

if (validationResult.isAjaxResult) then
request_rec.err_headers_out[validationResult.getAjaxQueueRedirectHeaderKey()] = validationResult:getAjaxRedirectUrl()
else
Expand Down
2 changes: 1 addition & 1 deletion SDK/UserInQueueService.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ local utils = require("Utils")
local userInQueueStateCookieRepository = require("UserInQueueStateCookieRepository")

local svc = {
SDK_VERSION = "v3-lua-" .. "3.6.0"
SDK_VERSION = "v3-lua-" .. "3.6.1"
}

-- Private functions
Expand Down

0 comments on commit 4681398

Please sign in to comment.