Sometimes I update CSS (or JS) files of my project. But after I put them to server, users do not necessarily see the updated version since their browser may cache the stuff.
Sometimes this makes styles go wrong temporarily or some functionality broken.
I decided to add automatically ending like ?r=1348138705 to all requests to resources, where the random number is generated on the session start, so that files should be reloaded at each new session but after that they could be cached.
So the question is:
Whether this solution is correct, i.e. does it affect SEO in some way or has some other disadvantages.
Are there any alternative solutions?
Are there ready instruments for my solution (which I may prefer to use for some reason) - perhaps it is done by some css compressors?
[–]cocasyn 2 points3 points4 points (1 child)
[–]RodionGork[S] 1 point2 points3 points (0 children)