Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script appears to be cached, and does not load latest version #47

Open
ostat opened this issue May 18, 2024 · 1 comment
Open

Script appears to be cached, and does not load latest version #47

ostat opened this issue May 18, 2024 · 1 comment

Comments

@ostat
Copy link

ostat commented May 18, 2024

Describe the bug
It appears that the openscad script is cached somewhere. reloading the page does not reload the script.

To Reproduce
I am using this link
https://seasick.github.io/openscad-web-gui/?https%3A%2F%2Fraw.githubusercontent.com%2Fostat%2Fgridfinity_extended_openscad%2Fmain%2Fcombined%2Fgridfinity_basic_cup.scad
Within openscad-web-gui I can see the version of the script is 2024-02-17
image

However I can see that the script has been updated since then
https://raw.githubusercontent.com/ostat/gridfinity_extended_openscad/main/combined/gridfinity_basic_cup.scad
image

Expected behavior
I expected that each time the page is loaded it would get the latest version of the script from the source.

Environment

  • Operating system Windows 10
  • Browser Firefox 126, Chrome 124

Openscad Script
Provided above

@seasick
Copy link
Owner

seasick commented Jun 14, 2024

Thanks for raising the issue. This has definitely to do with the used CORS proxy.
I sent a request to cors.sh as I hope I have more control over caching times with them.

I expected that each time the page is loaded it would get the latest version of the script from the source.

I fear that this might not be feasible - at least not with free services. But another thing I could do is to add some kind of cache buster. Like a parameter that will be appended to the given url (e.g. https://seasick.github.io/openscad-web-gui/?https%3A%2F%2Fraw.githubusercontent.com%2Fostat%2Fgridfinity_extended_openscad%2Fmain%2Fcombined%2Fgridfinity_basic_cup.scad?___busted=1234)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants