hoppscotch icon indicating copy to clipboard operation
hoppscotch copied to clipboard

[bug]: PWA Cache

Open Tarrowren opened this issue 2 years ago • 3 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current behavior

First of all, I appreciate the developer's work, the website features are updated very fast. However, the page does not display properly after each update, I need to manually clear the browser cache and then refresh the page (every time I lose the configuration and history data :( I took a brief look and found that some js files were not cached:

image

Steps to reproduce

  1. Waiting for update
  2. Open website

Environment

Production

Version

Cloud

Tarrowren avatar May 27 '22 03:05 Tarrowren

@Tarrowren thank you for your kind words 😊

But, I am a bit confused, I am not able to reproduce this and moreover, during an update of course a lot of the JS files will be invalidated, but the browser should be cleanly able to fetch in the new version and load it in. Are you offline or have some difficulties like that ?

Which browser are you using specifically ? Do you have any security features enabled which maybe of concern ?

AndrewBastin avatar May 27 '22 09:05 AndrewBastin

using online, chrome browser, and have hardly changed any security configuration

Does the cache require workbox.js to work properly? I currently can't access cdn.jsdelivr.net

Tarrowren avatar May 27 '22 11:05 Tarrowren

@Tarrowren Yes, we use workbox for it and that needs to be accessible, I will keep the issue open for potential solutions and ways to get around that.

AndrewBastin avatar May 31 '22 12:05 AndrewBastin