Assembly: EPiServer.Framework (in EPiServer.Framework.dll) Version: 8.0.0
Configures cache policy of a static file based on configuration rules
protected virtual void SetCachePolicy( HttpContextBase context, DateTime fileChangedDate )
Configuration setting expirationTime in web.config states the Expires date that is added to the Resonse (which browsers typically uses to control how long to cache the file before a new request). If TimeSpan.Zero is specified in expirationTime no Expires date is added which most browsers will interpret so they make a request for the file each time but since Last-Modified is added a 304 (Not modified) will be returned by server if file has not changed.