*Question:* 1. Does anyone know what process on server side results in loaded .png files with a hash appended, like "logo.png?61f99" instead of "logo.png"? 2. Has anyone had problems with this in the sense that instead of supplying desired images, the cache is responding with same image for different images?
*Problem Example:* maps extension needs two icons: marker-icon.png, marker-shadow.png. The browser loads: "marker-icon.png?2273e%22)marker-icon.png" and "marker-icon.png?2273e%22)marker-shadow.png", but both files end up looking like "marker-icon.png" image.
*Version:* MW version:1.34.0 PHP version: 7.3.15 (same problem with 7.4.3) SMW version (if applicable): 3.1.5 Apache: 2.4.41 Ubuntu server: 16.04
Any help is greatly appreciated and will be shared with Maps devl team.
With regards Julius
Hello,
On 20-03-18 12:39:38, Julius Heyne wrote:
*Question:*
- Does anyone know what process on server side results in loaded .png
files with a hash appended, like "logo.png?61f99" instead of "logo.png"? 2. Has anyone had problems with this in the sense that instead of supplying desired images, the cache is responding with same image for different images?
1: The ResourceLoader adds the hash.
*Problem Example:* maps extension needs two icons: marker-icon.png, marker-shadow.png. The browser loads: "marker-icon.png?2273e%22)marker-icon.png" and "marker-icon.png?2273e%22)marker-shadow.png", but both files end up looking like "marker-icon.png" image.
The question mark starts the query string, so the filename is everything before the question mark, so in this case they are the same files.
mediawiki-l@lists.wikimedia.org