Home  >  Article  >  Web Front-end  >  How to clear cache of web static list page_html/css_WEB-ITnose

How to clear cache of web static list page_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:25:411071browse

ASP generates a static list page. How to clear the cache or disable the cache? Because the list page increases or decreases, it needs to be refreshed before it can be displayed. This will not provide a good user experience. Add , it doesn’t seem to work, please ask for a solution


Reply to the discussion (solution)

Use ajax technology, you can refresh asynchronously . In other words, the content can pop up without the user refreshing

Now that the cache is disabled, each page needs to be downloaded from the Internet when it is opened. It is slow to open the page because my website uses a lot of pictures. , I planned to use static pages to improve browsing speed, but now it is much slower. Is there any way to get the best of both worlds? When the page is updated, you can see the updated page. When there is no update, open it locally

Server How will the client know about database updates? Of course, it needs to be refreshed before it can be displayed...
Disabling caching is unnecessary, it will not be effective and consumes resources
Ajax can solve your problem. Send an ajax request to the server every once in a while to get the latest list. Then just update the menu with js
Ajax is already a very basic knowledge of the web. If you don’t know how to do it, go to Baidu by yourself

I also think it’s better to use ajax!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn