Skip to content
Snippets Groups Projects
  • Jake Howard's avatar
    4584cfe3
    Additionally set expires header when caching responses · 4584cfe3
    Jake Howard authored
    Browsers are rather smart, but also dumb. This uses the `Expires` header
    alongside `cache-control` to better prompt the browser to actually
    cache.
    
    Unfortunately, firefox still tries to "race" its own cache, in an
    attempt to respond to requests faster, so still ends up making a bunch
    of requests which could have been cached. Doesn't appear there's any way
    around this.
    Additionally set expires header when caching responses
    Jake Howard authored
    Browsers are rather smart, but also dumb. This uses the `Expires` header
    alongside `cache-control` to better prompt the browser to actually
    cache.
    
    Unfortunately, firefox still tries to "race" its own cache, in an
    attempt to respond to requests faster, so still ends up making a bunch
    of requests which could have been cached. Doesn't appear there's any way
    around this.