Sometimes i find images on the sites added through css. Even if image name is (let's say) footer_logo.gif. In css it will be added as footer_logo.gif?1297280570
What do I miss in here?
Regards,
|
Sometimes i find images on the sites added through css. Even if image name is (let's say) footer_logo.gif. In css it will be added as footer_logo.gif?1297280570 What do I miss in here? Regards, |
|||
|
|
|
Probably that's a cache prevention or a version number or a tracking method or someting else. For example: If you just place If you plan to refresh it, you can add a query (in your example it's If it's a version number, it will work in the same way as the previous example, the "difference" is that it tells the developer which version it is using; In this case it can also use a dynamic system to change the image, it's more complex to explain here and would probably be done in a different way. If it were a tracking method, when the image was loaded, the server would gather that query and use it in its statistics, etc. It can be something else... BTW, this question could belong to stackoverflow. |
|||
|
|
|
The chances are that it's a cachebuster - used to ensure that the url is unique (typically a random number or a time stamp) and that the image is therefore forced to be reloaded. It might be used where images are generated by the server on the fly, as an alternative to using a different actual image name every time (which has knock on implications), this mechanism just ensures that the image is always reloaded. See this page describing more info about cachebusters I would imagine this number is almost certainly a timestamp, as it's encoding a date this year in unix time - the number of seconds since Jan 1 1970. Converting your number into a date, you get Wed Feb 09 2011 19:42:50 GMT+0000 which would be the last time that image was generated. Of course it's not necessarily anything to do with the image or css. The question mark simply denotes that what is about to follow are some parameters passed in the url to the web server, which can be used for whatever is relevant on the website: See http://stackoverflow.com/questions/574493/what-is-the-symbol-in-url-used-for-in-php |
|||||||||||||||||
|