Reputation: 3999
I want append a query string "?v=123" to all .css and .js files to forces the client's browser to download an updated copy of the stylesheet or script after new deployment.
Will this work in all browsers? For me it is important to work in IE8,IE9,IE10,IE11,FireFox and Chrome.
But I can’t find information if this works in all browser. If someone has experience please share with me.
Upvotes: 1
Views: 97
Reputation: 3999
Not working in IE8 ! Today we had issue on server. It's working in other browsers (IE9,IE10,IE11,FireFox and Chrome).
Upvotes: 1
Reputation: 101513
Yep.
It's a query string parameter, which has been part of the specification since 1994:
An HTTP URL takes the form:
http://<host>:<port>/<path>?<searchpart>
where and are as described in Section 3.1. If : is omitted, the port defaults to 80. No user name or password is allowed. is an HTTP selector, and is a query string. The is optional, as is the and its preceding "?". If neither nor is present, the "/" may also be omitted.
Upvotes: 1