Skip to content

Fix esi on noncached pages and when Content type is application/json#24

Open
albertdahlin wants to merge 3 commits intomadepeople:masterfrom
webbhuset:fix-esi-on-noncached-pages
Open

Fix esi on noncached pages and when Content type is application/json#24
albertdahlin wants to merge 3 commits intomadepeople:masterfrom
webbhuset:fix-esi-on-noncached-pages

Conversation

@albertdahlin
Copy link

This branch disables ESI processing on non cached pages (ttl = 0) and responses with Content-Type application/json.
This also fixes an issue with session messages disappearing on non cached pages. (eg account/login)

If you enter the wrong password on account/login the message you don't get any message due to this line. It removes all messages from the session and when madecache/varnish/messages tries to render the message block there is nothing left.

@jonathanselander
Copy link
Contributor

A bunch of changes have been made to the varnish stuff lately, i would suggest merging master into your fork andto see if the problem persists. Regarding ESI, the syntax 0x2 allows for escaped ESI attributes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants