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

Eliminate ?cacheBust? #925

Closed
samreid opened this issue Mar 30, 2020 · 10 comments
Closed

Eliminate ?cacheBust? #925

samreid opened this issue Mar 30, 2020 · 10 comments

Comments

@samreid
Copy link
Member

samreid commented Mar 30, 2020

After moving we moved to ES6 modules, we no longer have the ability to ?cacheBust the main JS code, as we did for requireJS. We opened #866 for alternative ideas about cache busting the ES6 module code, but most developers now just run Chrome with devtools open and disable cache. We recently added the ability to cache bust preloads as part of #755. We should decide whether we want to keep this cache busting facility for preloads now that we know that facility won't work for the main ES6 modules. We may decide to remove cache busting altogether. In that case, search all occurrences of "cachebust" (case insensitive) across JS+HTML files to see where this is in use. Let's touch base on this at a developer meeting before we proceed.

@zepumph
Copy link
Member

zepumph commented Mar 30, 2020

related to #866

@chrisklus
Copy link
Contributor

From 4/2/20 dev meeting:

We think unless we try to get cache busting working for ES6 modules in addition to preloads, then we should just get rid of this and rely on dev tools or local servers for no caching. @samreid volunteered to do this.

@samreid
Copy link
Member Author

samreid commented Apr 6, 2020

Some questions came up as I was working on this:

  • Is phet-core/js/loadScript.js used? I couldn't find any occurrences. @jonathanolson is listed as the author, can you recommend how to proceed? Let me know if I should open a separate issue.
  • There is an alternate declaration and usage of cacheBust in interaction-dashboard. @zepumph may wish to determine a better way of doing this. Let me know if I should open a separate issue.

samreid added a commit to phetsims/balloons-and-static-electricity that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/balancing-chemical-equations that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/area-model-multiplication that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/area-model-introduction that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/atomic-interactions that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/area-model-decimals that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/acid-base-solutions that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/blackbody-spectrum that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/area-model-algebra that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/area-model-common that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/balancing-act that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/bending-light that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/beers-law-lab that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/area-builder that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/arithmetic that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/blast that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/axon that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/circuit-construction-kit-black-box-study that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/circuit-construction-kit-dc-virtual-lab that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/reactants-products-and-leftovers that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/circuit-construction-kit-common that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/equality-explorer-two-variables that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/neuron that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/wilder that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/tappi that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/twixt that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/joist that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/vegas that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/tambo that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/vibe that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/kite that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/dot that referenced this issue Apr 6, 2020
samreid added a commit to phetsims/sun that referenced this issue Apr 6, 2020
@samreid
Copy link
Member Author

samreid commented Apr 6, 2020

Fixed in the preceding commits. Most changes are in chipper and phetmarks. Then I updated the html and test-html files for each repo. Some questions came up as I was working on this:

  • Is phet-core/js/loadScript.js used? I couldn't find any occurrences. @jonathanolson is listed as the author, can you recommend how to proceed? Let me know if I should open a separate issue.
  • There is an alternate declaration and usage of cacheBust in interaction-dashboard. @zepumph may wish to determine a better way of doing this. Let me know if I should open a separate issue.

Also, does one of you mind reviewing this change?

@zepumph
Copy link
Member

zepumph commented Apr 10, 2020

after investigation, this query parameter should stick around. It has to do with logic when processing giant data stream files, and it is nice to support caching them when iterating on the preprocessor. I can rename it if that would be less confusing. Do you think that is necessary?

@zepumph zepumph assigned samreid and unassigned zepumph Apr 10, 2020
@samreid
Copy link
Member Author

samreid commented Apr 10, 2020

Interaction Dashboard's ?cacheBust can stick around and does not need to be renamed.

@samreid samreid assigned zepumph and unassigned samreid Apr 10, 2020
@zepumph
Copy link
Member

zepumph commented Apr 10, 2020

Excellent. Anything else for me here?

@samreid
Copy link
Member Author

samreid commented Apr 11, 2020

I think the last step for this issue is for @jonathanolson to review #925 (comment)

@jonathanolson
Copy link
Contributor

Is phet-core/js/loadScript.js used? I couldn't find any occurrences. @jonathanolson is listed as the author, can you recommend how to proceed? Let me know if I should open a separate issue.

It seems generally useful, but I don't see a use right now. A slight preference for leaving it. If that's ok with you, let's close here?

@samreid
Copy link
Member Author

samreid commented Apr 15, 2020

I don't mind leaving it, and my IDE shows a message that loadScript is unused.

image

So I think it's clear that it's not used at the moment. Closing.

@samreid samreid closed this as completed Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants