Page Speed Optimization Libraries  1.7.30.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Attributes
net_instaweb::DownstreamCachingDirectives Class Reference

#include "downstream_caching_directives.h"

List of all members.

Public Member Functions

void ParseCapabilityListFromRequestHeaders (const RequestHeaders &request_headers)
bool SupportsImageInlining () const
bool SupportsLazyloadImages () const
bool SupportsJsDefer () const
bool SupportsWebp () const
bool SupportsWebpLosslessAlpha () const

Static Public Attributes

static const char kNoCapabilitiesSpecified []

Detailed Description

This class keeps track of the properties that are specified via directives from the downstream caching layer (e.g. varnish/proxy_cache), to indicate whether certain optimizations are to be supported or not These directives are currently specified via the PS-CapabilityList request header value.


Member Function Documentation

Parses the capability-list related request header value and stores this for future queries regarding supported capabilities for the request.

Todo:
TODO(anupama): Go through all DeviceProperties/RequestProperties methods and re-evaluate which of them need to be supported here.
Todo:
TODO(anupama): Incorporate the "allow_mobile" parameter used in DeviceProperties for supportsJsDefer().

Member Data Documentation

A string that indicates that no UserAgent-dependent-optimization constraints are specified for this request.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines