If the request query string starts with “?vsn=”,
Plug.Staticassumes the application is versioning assets and does not set theETagheader, meaning the cache behaviour will be specified solely by thecache_control_for_vsn_requestsconfig, which defaults to"public, max-age=31536000".
That’s the default for phoenix when using static_path though, which is explicitly not using etags. Though I’m not really sure as to why exactly.






















