简体   繁体   中英

Cache Busting with Query Strings

I would like to know the best process for cache busting using query strings, I've read up on a few different sources but I still don't quite understand how to implement it..

If I reference a new file in my HTML header, eg "style.css?v=1.1", does that file have to be renamed to reflect the new appendage?

Or should I just leave the filename as "style.css" and let the server figure it out?

Thanks in advance.

My answer got deleted by mods even though it was legitimate...

You only need to add the iterative appendage to your code and there is no need to alter the actual file name.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM