Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2015-03-25 17:43:55

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,075
Website Mastodon

css and js ver numbers?

I noticed these kind of urls when looking at page sources for sites “

href='responsive.css?ver=4.1.1' />  
and 
jquery/jquery-migrate.min.js?ver=1.2.1'>

what is the purpose of the VER numbers? The actaull filenames do not have the numbers and are simply: responsive.css & jquery-migrate.min.js


…. texted postive

Offline

#2 2015-03-25 17:48:27

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,137
GitHub

Re: css and js ver numbers?

It’s sometimes used as cache-busters – the idea being that the file is re-downloaded when the URL with ?ver= changes, although the file URL without the ?ver= stays the same.

Offline

#3 2015-03-25 18:11:10

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,075
Website Mastodon

Re: css and js ver numbers?

gaekwad wrote #289408:

It’s sometimes used as cache-busters – the idea being that the file is re-downloaded when the URL with ?ver= changes, although the file URL without the ?ver= stays the same.

thanks for the explanation. still perplexed though. I thought that using the simple filename without the ver # seemed to bork the development site i am working on. I do wish to use the simple file name… so I assume that is safe to do.

UPDATED: changed all filenames to simple.css and .js , cleared cache, and all is working fine now.

Last edited by bici (2015-03-25 19:20:40)


…. texted postive

Offline

Board footer

Powered by FluxBB