Skip to content

Commit

Permalink
Rename StoreEsiStatusMiddleware to EsiHeaderMiddleware
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave McLain committed Aug 30, 2011
1 parent 11e5926 commit 63cb905
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ the URL for that view.
Using with Varnish
""""""""""""""""""

`Varnish`_ integrates fairly easily with armstrong.esi. The
StoreEsiStatusMiddleware sets the 'X-ESI' header to 'true' if the page request
has esi tags on it. To enable esi processing in varnish for pages that need it
add the following to your vcl_fetch method::
`Varnish`_ integrates fairly easily with armstrong.esi. The EsiHeaderMiddleware
sets the 'X-ESI' header to 'true' if the page request has esi tags on it. To
enable esi processing in varnish for pages that need it add the following to
your vcl_fetch method::

if (beresp.http.X-ESI) {
set beresp.do_esi = true;
Expand Down
2 changes: 1 addition & 1 deletion armstrong/esi/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def process_response(self, request, response):

return response

class StoreEsiStatusMiddleware(object):
class EsiHeaderMiddleware(object):
def process_response(self, request, response):
if hasattr(request, '_esi'):
response['X-ESI'] = 'true'
Expand Down

0 comments on commit 63cb905

Please sign in to comment.