Commit 302d463c authored by Cleber J Santos's avatar Cleber J Santos Committed by Tollef Fog Heen

Force lookup of kss resources and fix cached creation of objects in Plone

parent 1b933317
......@@ -52,13 +52,18 @@ sub vcl_recv {
}
return(lookup);
}
# Do not cache the creation of objects in Plone
if (req.url ~ "createObject"){
return(pass);
}
}
# Don't cache authenticated requests
if (req.http.Cookie && req.http.Cookie ~ "__ac(|_(name|password|persistent))=") {
# Force lookup of specific urls unlikely to need protection
if (req.url ~ "\.(js|css)") {
if (req.url ~ "\.(js|css|kss)") {
remove req.http.cookie;
return(lookup);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment