Javascript not loading on updated _site files (cache issue) #1047
adellefrankEmory
started this conversation in
Development
Replies: 1 comment
-
Thank you for sharing this tip with the community @adellefrankEmory! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I had a caching issue whenever I uploaded a new copy of my _site files to the server (the js was not loading).
To fix this, I added a timestamp parameter to the js script calls like so:
_includes/components/scripts.js
<script type="module" src="/_assets/javascript/application/index.js?v=1752674422"></script>
_includes/components/head.js
<script src="/_assets/javascript/application/canvas-panel-web-components-1.0.68.js?v=1752674422" type="module"></script>
Thought someone else might find this helpful.
Beta Was this translation helpful? Give feedback.
All reactions