Pages looking funny after theme update #82
-
First of all, this is an amazing theme. I was able to build a nice website with it. I'm constantly adding new stuff or changing how a specific section looks, and my only issue is when i have to push these updates. The page i changed will always look weird and need a full browser refresh to look normal like test environment. I know that it's cache-related, but i haven't found any solution that works. Anyone can give a light? How to update pages and force the cache to reload for users? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hello—Thanks for posting this, and I'm very happy to hear you like the theme! Broadly speaking, browsers will cache static assets like CSS and JavaScript files, so you need to tell the browser that those files have updated if you want users (including yourself) who've visited the site already to load the new versions. _tw uses the If you generated your theme before April 13, 2023, or you don't use If you generated your theme after April 13, 2023, running If you're not sure whether you're getting automatic date-based versioning, please run
|
Beta Was this translation helpful? Give feedback.
While I don't officially document the upgrade process between different versions, I think this one would be as follows:
npm install adm-zip --save-dev
./node_scripts/zip.js
in your repository with this versionIf you encounter any error messages when running
npm run bundle
after following the above steps, please let me know!