How to avoid caching for create-react-app

2019-08-14 06:56发布

问题:

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

回答1:

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.