The web page written by Wechat himself in the official account is often modified and cannot be loaded.

I wrote the mobile page to open on WeChat, and the framework uses laravel, but I often find that there is a problem. After the style of the page is modified, the style of the page is uploaded to the server, and the local test style is good, but most of the phones are good after the Wechat end is opened, but the style of the page opened by some phones is messy and returns to normal after being refreshed many times. Some phones need to be opened for a day or two before they can be normal. I have tried to delete all the cache files in the framework, but it is of no use.

excuse me: is it useful to restart the server?

?.

add
< META HTTP-EQUIV= "pragma" CONTENT= "no-cache" >
< META HTTP-EQUIV= "Cache-Control" CONTENT= "no-cache, must-revalidate" >
< META HTTP-EQUIV= "expires" CONTENT= "0" >

to html head

most of them are useful.
but if the data of an interface is cached at the front end, check to see if the localStorage.
interface is used. If an interface is changed, a request to update the interface with a random timestamp is added. The
js aspect should also be stamped with a random timestamp


Hello, landlord! It is speculated that it is a cache problem. After resource replacement, you can add random code (either timestamp or random number) to remove the cache. I hope it will be helpful to you ~


try to clear Wechat cache. If clearing the cache can display normally, you can add a random code after the relevant file

.
Menu