This is the SO css path http://sstatic.net/so/all.css?v=6184 "what is this? V = 6184"?

This is the SO css path http://sstatic.net/so/all.css?v=6184 "what is this ? V = 6184"?

What is he doing? if it is useful, then how to use it? I can use this on any PHP site, ASp.net, etc.

+4
source share
2 answers

This is a way to control caching. When the value of the "v" parameter changes, the browser will consider it as a different URL and ask for a new copy of the file instead of using its cached copy. This method is often used for static "version" files, providing something like a timestamp in the query line that marks when the last file was changed.

+4
source

This is a query string. It can be analyzed by server processes to provide variable parts of the stylesheet, or they can be used to disable browsers or proxy caching.

+1
source

Source: https://habr.com/ru/post/1300017/


All Articles