Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

sw-precache and implicit index.html rewrites #20

Closed
jeffposnick opened this issue Apr 6, 2015 · 0 comments · Fixed by #21
Closed

sw-precache and implicit index.html rewrites #20

jeffposnick opened this issue Apr 6, 2015 · 0 comments · Fixed by #21
Assignees

Comments

@jeffposnick
Copy link
Contributor

Many servers are configured to handle a request for a bare directory URL as being equivalent to the request for index.html within that directory.

It's possible, but not intuitive, to handle this using the dynamicUrlToDependencies parameter. This approach also forces you to list entries for every directory that has an implicit index.html rewrite.

At the very least, the docs should clarify this behavior. Better, sw-precache should add a new option to configure what bare directories get rewritten to (e.g. index.html,index.php,index) and should automatically handle serving the appropriate file without the need for [dynamicUrlToDependencies`] mappings.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant