Page Speed Optimization Libraries
1.7.30.4
|
#include "suppress_prehead_filter.h"
Public Member Functions | |
SuppressPreheadFilter (RewriteDriver *driver) | |
virtual void | StartDocument () |
virtual void | StartElement (HtmlElement *element) |
virtual void | EndElement (HtmlElement *element) |
virtual void | EndDocument () |
Protected Member Functions | |
virtual void | Clear () |
Friends | |
class | SuppressPreheadFilterTest |
SuppressPreheadFilter extracts the html before the <head> (pre head) and stores it in property cache to be used by FlushEarlyFlow. If a request is flushed early then the pre head value stored by this filter is used for responding to the request. When a response is received by the origin server, then this filter suppresses the pre head so that it is not written to the output again.