Clear Nginx Server site cache data

Source: Internet
Author: User
Tags browser cache nginx server
After the company's website is always on the back of a few small bugs, but these bugs in the VI after the change to open the Web page but found that there is no change, Google some people said to delete the "/var/cache/nginx" folder, But I found this folder deleted after the restart Nginx still no reaction, and later on StackOverflow saw someone commented that can change the nginx.conf profile, set the Sendfile parameter to OFF (it is turned on by default), Restart Nginx, and then refresh the page, found to return to normal. Also, if you find this problem, you need to make sure that the browser cache data is cleaned up.

Reference Document: Http://stackoverflow.com/questions/6236078/how-to-clear-the-cache-of-nginx

The above describes the clean Nginx server site cache data, including the content, I hope that the PHP tutorial interested in a friend helpful.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.