I have a mediawiki 1.37 installation with a page using some css file. In this css file I have a background-image referring to a url, such as icon.gif
. The browser however issues the network requests to icon.gif?eff18
.
Questions:
- Which component adds that
?eff18
string? - How can I either determine this string myself (it looks like it is deterministically eff18 but it seems dependent on the specific image file) or turn off this adding of the string, since I need to issue a preload for this file.
What I have checked so far:
- The css file as it arrives at the browser references
icon.gif
without the additional query portion. So it looks like it is not some css preprocessing by the server. - The browser profile is fresh Chrome, no extensions installed.
- In a sample html file with css and the same effect does not show up; the example was done on the same web server installation so it probably is not a side effect of some server side mechanism (?).
- The effect does show up with the same Mediawiki installation on other Chrome profiles as well as on Firefox. The added string, in my example
eff18
is the same for this gif file, for other files referenced by css, such as svgs or pngs, it is different. - The css files loaded by the client come without query extension, so it does not look like autoversioning as discussed here How to force the browser to reload cached CSS and JavaScript files
Background: I am familiar with the general idea of adding random query extensions to prevent loading things from cache. I am not familiar with the details of the css loader / minifier of mediawiki - but since the two browsers (Chrome & Fox) both show the background-url unmodified without that string in the css they receive from the server it should not be some fancy minification. In at least two experiments (one of the two chrome profiles and the fresh firefox profile) there is no fancy extension or whatever in place which might intercept the browser request. The thing happens in both browsers. So, who the hell is changing the URL - and how is this done? And, how can I turn this off or at least predict the value added, so I can add a decent preload link with the right extension? And, if I want to use that feature in my own frameworks, how would I activate it?