score:0

Accepted answer

you likely need to implement some cache-busting so that when you refresh the page a new version of your assets is picked up. this is part of webpack configuration. see this article about cache-busting.

when linking to a file in your html:

<script src="index.js"></script>

the browser will only load it once. subsequent times it will not load it from the server again as it believes it already has the file cached. in order to get around this webpack can output a unique content hash into the file name so that each time the file is updated, the browser understands it can't use the cached version.

<script src="index.cf532g.js"></script>

this blog post that i wrote explains how to implement cache-busting using webpack and django. it features django-manifest-loader, a package i wrote, in order to link the two together.


Related Query

More Query from same tag