What is the difference between jquery-ui.css and jquery-ui.css? S2j = 3.3.1

Possible duplicate:
Intercepting cache via parameters

I am using a plugin struts2jquery

and I want to change a property inside jquery-ui.css

that is inside a jar file named struts2jquery-plugin-3.3.1.jar

.

The problem is that after changing this property, I can see the value changed in the file, but the browser is still using the original value. When I debug the problem, I figured out that the browser is using the file jquery-ui.css?s2j=3.3.1

, and as soon as I delete ?s2j=3.3.1

, the browser reads the file I changed and got the new value!

So, anyone can help me understand what is the difference between jquery-ui.css

and jquery-ui.css?s2j=3.3.1

and how to change the value in jquery-ui.css?s2j=3.3.1

bcz. I don't know where this file is located.

+3


source to share


1 answer


This is the browser cache. When you add a request such as to the URL ?s2j=3.3.1

, the browser considers it a new asset, still unblocked, and fetches a new copy from the server.



It is common knowledge that this method is used to prevent caching on ajax requests. For example jQuery adds a timestamp to a URL every time you call its function $.ajax

with the option cache

set to false

.

+5


source







All Articles