[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] Filename should end with the first '?' character

From: michael
Subject: [Bug-wget] Filename should end with the first '?' character
Date: Sat, 10 Nov 2018 23:19:46 +0200

Hello all,

WordPress has 'invented' a way to avoid caching of static content and force
downloading it every time. 
It does so by adding parameters to the file requested. This "feature" is
slowing the page download and create an issue using wget.

For example, a stylesheet is appended with "ver" parameter.

In wget1 the '?' character was replaced with %3F string (Hex value on the
character?) and it worked somehow.

The file name generated  was: 
style.css%3Fver=4.8.7.css and it allowed the website served using HTTP

In wget2 the character is not replaced and the generated filename is 

This file can't be served using HTTP server as it strips the parameters from
the filename.

I suggest to strip the parameter string from the filename and save it as
More then that: if the file refers to static content (html,js,css...) I
suggest stripping the parameter string also in the referring links.

What do you think?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]