prisma-archive / prep

Pre-renders your web app (React, Vue, Angular, ...) into static HTML based on your specified routes enabling SEO for single page applications.
MIT License
373 stars 27 forks source link

Prepjs uses cached assets when a service worker is installed on the rendered site #18

Closed DonnieWest closed 6 years ago

DonnieWest commented 7 years ago

I recently upgraded prepjs on a create-react-app project. When statically rendering my routes, it uses the cached service worker index.html instead of the generated one. My prep.js looks roughly like:

//define routes here
exports.default = () => ({
  routes,
  timeout: 1000,
  dimensions: {
    width: 1440,
    height: 900,
  },
  https: true,
  hostname: 'https://myhostname.com',
  minify: true,
})

I've tried clearing my browser cache, but of course, multiple routes just causes the serviceworker to cache assets for the next run. I'm sure there's some sort of workaround. Any ideas?

stereobooster commented 7 years ago

anonymous mode? do not use https