Hi!
I am trying to optimize my site in accordance with PageSpeed recommendations. I have enabled gzip compression of certain file types, such as js, css.
But Moodle serves some files like /lib/requirejs.php/1622007505/core/first.js
So, this is PHP script , which serves js contents. And this server response is not conpressed.
Request headers:
GET /lib/requirejs.php/1622007505/core/first.js HTTP/2
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Upgrade-Insecure-Requests: 1
Pragma: no-cache
Cache-Control: no-cache
Response headers:
HTTP/2 200 OK
date: Wed, 26 May 2021 07:31:13 GMT
server: Apache
content-disposition: inline; filename="requirejs.php"
expires: Tue, 24 Aug 2021 07:31:13 GMT
pragma:
cache-control: public, max-age=7776000, immutable
accept-ranges: none
etag: "3df684cad431e2f5b9dfafa4a87fc86f54e54bb3"
last-modified: Wed, 26 May 2021 05:38:38 GMT
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
content-length: 1263731
content-type: application/javascript; charset=utf-8
X-Firefox-Spdy: h2
So, is it possible to enable gzip compression in Apache config for such files like /lib/requirejs.php/1622007505/core/first.js?