JavaScript source request

When looking at the code of some websites, I sometimes notice that some JavaScript files are included as follows:

  <script type="text/javascript" src="javascripts/jquery.js?1252521516"></script>

But I do not see what part of the jquery.js parameter does ? 1252521516 of the src parameter. Can someone please explain this to me?

+3
source share
4 answers

It allows websites to force browsers to update their cached version of a script or other resource.

, Javascript - , . , , , . .

+6

-. , javascript - .

+2

- . , , , , .

+1

It’s possible to somehow avoid caching (part 1252521516 is generated every time the page loads), but I don’t understand why this is used for jquery

+1
source

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


All Articles