You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
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 implicitindex.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.The text was updated successfully, but these errors were encountered: