search
Homephp教程php手册解决linux服务器下js和css缓存的问题

使用Linux系统做网站服务器的,本地修改完Js或者css传到服务器上面经常会有没效果的情况,这是linux服务器缓存的问题,导致本地下载的js还是旧版本的,如下分享一下具体的解决办法,如下:

可以再添加js引用的地方,设置参数比如 xx.js?v=1.2 ,每次修改js都要更新v的参数,这样新的js就会立刻生效了,css也是同样的解决办法。

您可能感兴趣的文章

  • mysql服务器主从数据库同步配置
  • 如何增强Linux和Unix服务器系统安全性
  • 使用PHP的GZip压缩功能对网站JS和CSS文件进行压缩加速网站访问速度
  • 彻底解决Button在IE6、7下的自适应宽度问题
  • PHP实现同服务器多个二级域名共享 SESSION 数据
  • Vcastr 3.0 - flash video(flv播放器) 下载和配置的详细说明
  • 总结mysql服务器查询慢原因与解决方法
  • 总结MySQL数据库服务器逐渐变慢的原因和解决办法
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.