js css后面所带参数含义介绍_基础知识

WBOY
Release: 2016-05-16 17:25:26
Original
1060 people have browsed it

浏览一些网站,经常看到网页链接的js css后面总是带有一些参数,今天详细查了一下:

出现此种情况,主要有两个可能:

脚本不存在,而是服务器端动态生成的,带一个参数表示生成脚本文件的版本号。

为加快响应速度,有些客户端会缓存相应的js css,因此每次升级了js css 版本号后,改变相应的版本号,客户端浏览器会自动去更新的新版本的js或是css

第二种情况应该是最多的

Related labels:
js
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!