workbox icon indicating copy to clipboard operation
workbox copied to clipboard

[Feature] Add ability to specify [hash] in navigationFallback

Open mike-marcacci opened this issue 6 years ago • 1 comments

Library Affected: workbox-sw

Browser & Platform: all browsers

Issue or Feature Request Description: I have the need to specify a navigationFallback that uses webpack filename substitutions, like this:

{
  new HtmlWebpackPlugin({
    template: "src/boltline.html",
    filename: "boltline-[hash].html"
  }),
  new GenerateSW({
    // ...
    navigateFallback: "/boltline-[hash].html",
    // ...
  })
}

Our caching strategy depends on idempotent URLs, or we risk serving old content for a long time.

mike-marcacci avatar May 30 '18 23:05 mike-marcacci

This is not yet implemented, right? Same goes for the precacheFallback.fallbackURL, which can not be made dynamic at the moment.

vasisouv avatar May 12 '23 10:05 vasisouv