网站图片CDN缓存,新上传图片后,多久更新?

WBOY
Release: 2016-06-06 20:24:54
Original
2586 people have browsed it

网站图片CDN缓存,新上传图片后,多久更新?

回复内容:

网站图片CDN缓存,新上传图片后,多久更新?

通用做法是在你更新了静态文件的时候在文件的末尾增加版本号就能使CDN立即生效
例如:bugall.js ----> bugall.js?time=1402394823

<code> bugall.jpg  ----> bugall.jpg?time=1402394823
 </code>
Copy after login

图片的我没有亲自试过 不知能可不行否 但是原理应该一样的

不加时间戳一般要很久,手动清一下cdn缓存就行了

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