Skip to content

Browser caching of index.html #37

@simonihmig

Description

@simonihmig

When using this pack, I discovered an issue with the way S3 and CloudFront send HTTP headers for your index.html (or rather any history-location based URL that gets served by index.html), as they send a far future expires header by default (https://github.com/ember-cli-deploy/ember-cli-deploy-s3#cachecontrol), thus enabling the browser to cache that file almost infinitely. This makes sense for fingerprinted assets, but not for index.html, as you would not see any newly deployed app updates until the browser cache is cleared.

The ember-cli-deploy-s3-index plugin therefore sets no-caching headers for index.html: https://github.com/ember-cli-deploy/ember-cli-deploy-s3-index#cachecontrol. Not sure how this should be solved with this pack, other than maybe adding this plugin as well?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions