How to avoid caching for create-react-app

2019-08-14 06:47发布

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条回答
迷人小祖宗
2楼-- · 2019-08-14 07:46

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.

enter image description here

查看更多
登录 后发表回答