Fix typos and correct cookie

scratchsessionsid not scratchsessionid
Cookie needs key added for assigned value of scratchlanguage
This commit is contained in:
Colby Gutierrez-Kraybill 2017-12-01 10:04:47 -05:00
parent 91b3feb0b1
commit 1083a7a79f
3 changed files with 4 additions and 4 deletions

View file

@ -93,7 +93,7 @@ var FastlyConfigMethods = {
setResponseTTL: function (condition) {
return '' +
'if (' + condition + ') {\n' +
' if (req.url ~ "^/projects/" && !req.http.Cookie:scratchsessionid) {\n' +
' if (req.url ~ "^/projects/" && !req.http.Cookie:scratchsessionsid) {\n' +
' set beresp.http.Vary = "Accept-Encoding, Accept-Language";\n' +
' } else {\n' +
' set beresp.ttl = 0s;\n' +