Page Speed Optimization Libraries
1.13.35.1
|
#include "user_agent_normalizer.h"
Public Member Functions | |
virtual GoogleString | Normalize (const GoogleString &in) const =0 |
Static Public Member Functions | |
static GoogleString | NormalizeWithAll (const std::vector< const UserAgentNormalizer * > &ua_normalizers, const GoogleString &ua_in) |
Base class for user agent string normalizer. The idea is that UA strings, sometimes include irrelevant information, so this provides a way of stripping it, to improve cache hit-rates when the normalized UAs are used in cache keys.
|
static |
Helper that applies all the normalizers in the ua_normalizers list to ua_in.