Pagespeed is not applied correctly in the source code of a web page. The module is enabled on apache

I have a page module installed on an Apache server and a website built on the basis of codeigniter.

How do I want to enable pagepeed in only a few domains hosted on the server. The file uses the code below to enable pagespeed: .htaccess

<IfModule pagespeed_module>
ModPagespeed on 
</IfModule>

I ran into problems below:

  • CSS files are not overwritten or cached using pagepeed: For example: A css file after the correct page-style application should look like this:

https://domainname.com/assets/css/A.common.css,qv=15.35.pagespeed.cf.Biz8Hjcmz6.css

But it still looks like:

https://domainname.com/assets/css/common.css

  1. CSS files do not merge.

  2. JS files are not overwritten or merged. For example, the js file after the correct page application should look like

https://domainname.com/assets/js/A.main.js,qv=15.35.pagespeed.cf.Biz8Hjcmz6.js

But it still looks like:

https://domainname.com/assets/js/main.js

  1. Images are not overwritten or cached using pagepeed.

: "data-pagespeed-url-hash" , URL- , , , .

- . ?

+4

Source: https://habr.com/ru/post/1691412/


All Articles