pcb icon indicating copy to clipboard operation
pcb copied to clipboard

Cache does not respect query parameters

Open firasdib opened this issue 7 years ago • 0 comments

Hello,

My config currently looks like this:

    externals: ['/'],
    ServiceWorker: { scope: '/' },
    scope: '/',

Where my purpose was to cache the html file returned by the the server (SSR), and cache all the js files. This works great, however, if I try to visit /?query=param, I get my cached result back (i.e., it does not hit the server), which is incorrect.

Is there a way to make it only return a cached result in specific cases? Such as, when there are no query parameters. If there is a network error, it'd perhaps prefer my app-shell or something like that.

Thanks in advance.

firasdib avatar Jan 02 '19 20:01 firasdib