Home > Backend Development > PHP Tutorial > Solve the problem of js and css caching under linux server_PHP tutorial

Solve the problem of js and css caching under linux server_PHP tutorial

WBOY
Release: 2016-07-13 10:31:01
Original
1114 people have browsed it

For those who use Linux system as website server, JS or CSS that has been modified locally and transferred to the server often has no effect. This is a problem with the Linux server cache, resulting in the locally downloaded JS being still an old version. Let’s share the specific solutions as follows:

You can add a js reference and set parameters such as xx.js?v=1.2. Every time you modify js, you must update the v parameter, so that the new js will take effect immediately. The same solution is used for css.

Articles you may be interested in

  • mysql server master-slave database synchronization configuration
  • How to enhance the security of Linux and Unix server systems
  • Usage PHP's GZip compression function compresses website JS and CSS files to speed up website access
  • Completely solves the problem of Button's adaptive width under IE6 and 7
  • PHP implements multiple secondary levels on the same server Domain name sharing SESSION data
  • Vcastr 3.0 - Detailed instructions for downloading and configuring flash video (flv player)
  • Summary of the reasons and solutions for slow query of mysql server
  • Summary of MySQL database Reasons and solutions for the server gradually slowing down

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/764149.htmlTechArticleWhen using Linux system as a website server, Js or css modified locally and transmitted to the server often have no effect. situation, this is a Linux server cache problem, resulting in locally downloaded...
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template