Get the App
SLTechnology News&Howtos  ›  Servers  › 

How does the virtual host clean up the cache

Shulou Source: shulou.com Published: 2022-06-02 01:52:05 11月12日 Update

How does the virtual host clean up the cache? I believe that many inexperienced people are at a loss about this, so this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

Sometimes in order to improve the access speed of the website, the host will cache the static files of some hosts. What should users do if they want to clean up the cache? Let's take billion-speed CVM as an example to introduce it.

I. hosts with caches

1. RTHK virtual host

two。 The Hong Kong line of the CVM in the sub-digital computer room

3. Domestic dual-line virtual host mobile node, domestic multi-line virtual host mobile node

4. Intelligent multi-line CVM mobile node

II. Caching rules

Js/css/swf these files are cached, and other files are not cached. Cache time: 24 hours.

Third, the method of cleaning the cache

1. Single file cache cleaning method: add _ qhc after the domain name /, plus the file path:

To clean up the cache of the http://ww.west.cn/style.css file, add _ qhc after the domain name to access http://www.west.cn/_qhc/style.css directly and take effect in real time.

If the cleanup is successful, you will see the page of successful purge, and if 404 appears, the file does not have a cache.

two。 Site clean-up: visit the home page of the website and press Ctrl + F5 to take effect 10 minutes later.

After reading the above, have you mastered the method of how the virtual host cleans up the cache? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Tags: Cache host file virtual host method node mobile content domain name multiline more server website problem service success helpless for this single reason Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Redmi Docker macOS Huawei