I have created an app using create-react-app but it always loads old index.html from client
tried with meta tags to avoid cache in index.html but does not load new html always
index.html
I have created an app using create-react-app but it always loads old index.html from client
tried with meta tags to avoid cache in index.html but does not load new html always
index.html
One way can be using the meta tags.<meta http-equiv='cache-control' content='no-cache'> <meta http-equiv='expires' content='0'> <meta http-equiv='pragma' content='no-cache'>
A very Rare condition. sometimes it may be because of your browser cache. there is an option in your Dom inspector which helps to disable caching. press F12 to toggle dom inspector. select the network tab Try the tick on.
Also make sure that you are editing and previewing the same index.html file.
© 2022 - 2024 — McMap. All rights reserved.