After the react project is released, users need to refresh the browser manually in order to run normally.

has MD5 value, and the packaged hash value is also different each time js changes the code, but the user must refresh the page cache to use

normally.

index.html is cached
the cached index.html refers to the old js and css resources, which are also cached by the browser, so the last visited page is loaded.
modify the nginx configuration
location / {

index index.html;
if ($uri ~* "html$") {
    add_header Cache-Control "no-cache, no-store, max-age=0, must-revalidate";
}

}


check whether index.html has set cache in Nginx
check whether the project's vendor.js common.js has hash


? It feels normal.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a968-2af6b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a968-2af6b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?