Boost C++ Libraries

PrevUpHomeNext

Function looks_content_hashed

boost::taar::handler::cache_rules::looks_content_hashed — True if the file name in path carries a content hash, as bundlers emit: app.3f9a1c2e.js, chunk-5ZQ3X2AB.js, 3f9a1c2e4b.css.

Synopsis

// In header: <boost/taar/handler/htdocs.hpp>


bool looks_content_hashed(std::string_view path);

Description

The name without its last extension is split at . and -; a part of at least 8 characters from [A-Za-z0-9_] containing both a digit and a letter counts as a hash. A heuristic: provide your own predicate when your names follow another scheme.


PrevUpHomeNext