Mailing List Archive

Cache problem with extension images
*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
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Re: Cache problem with extension images [ In reply to ]
Hello,

On 20-03-18 12:39:38, Julius Heyne wrote:
> *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?

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.

--
Tobias Wiese
PGP KEY: https://tobiaswiese.com/pgp.asc
PGP FPR: E1A7A8879BAD75B42D63F3310F067C2DD70E89A0