jthingelstad / foreground

A MediaWiki skin that focuses on putting your content in the foreground.
http://foreground.wikiproject.net/
Other
137 stars 60 forks source link

caching issue: static CSS is load thorugh load.php and therefore uncacheable #370

Closed adrelanos closed 3 years ago

adrelanos commented 4 years ago

Setup

Issue

gtmetrix.com, google pagespeed and other website speedtest / caching test websites complain that the following resources do not have a long expiration date / aren't cacheable:

This is because these are fetched through load.php. That's probably the reason that these aren't links to .css or .js files.

These files look fairly stable.

Is this a mediawiki load.php issue or a foreground skin specific issue?

JasonJAyalaP commented 4 years ago

It's the js, not the css.

As far as I can tell, normal wikimedia behavior is to send a request to load.php like this:

load.php?[...]modulename.namespace.tool,tool2,tool3|differentmodule.tool,tool2

Which replies with a concatenated css/js of all thoses requested modules. But somehow for whonix wiki using foreground, our html is making individual requests:

load.php?[...]modulename.namespace.tool
load.php?[...]modulename.namespace.tool2
load.php?[...]modulename.namespace.tool3
load.php?[...]differentmodule.tool
combination requests network
JasonJAyalaP commented 4 years ago

Notes: Looking at the Githubissues.

  • Githubissues is a development platform for aggregating issues.