LSCache - ETag - Minified CSS/JS

#1
Hi,

I have installed, configured and tuned WP LSCache Plugin (which is a great plugin!!!) and almost everything works very well except for one thing.
I've just tested my website on GTmetrix. After tuning I still have the following problem:
"Specify a cache validator"
The following resources are missing a cache validator. Resources that do not specify a cache validator cannot be refreshed efficiently. Specify a Last-Modified or ETag header to enable cache validation for the following resources:
- https://www.mysite.com/min/5201e.css
- https://www.mysite.com/min/6dfc9.js
- https://www.mysite.com/min/81b61.js
It seems to only happen with minified ressources (JS and CSS).

To solve the problem I am thinking of turning "addEtag" from 0 to 1 in "Server Configuration > Modules > Server Modules Definition > Module Parameters". Is it a good solution? Will it solve my problem?

Thanks a lot.
 
Last edited by a moderator:

Pong

Administrator
Staff member
#2
Are you using OpenLitespeed? Did you enable modpagespeed module?
We recommend you disable modpagespeed module when using LSCWP plugin since most of functions are within LSCWP.
In term of adding etag for OLS, you can go to server configuration-> tuning-> Static File Delivery Optimization ->File ETag.
Normally this forum is for LiteSpeed Enterprise related, openlitespeed related questions can be raised on forum.openlitespeed.org
 
Last edited by a moderator:
#3
@Pong
Thanks for you answer.

You are correct: I use OpenLitespeed and not Litespeed (next time I will use OpenLitespeed forum).
Actually I moved to OpenLitespeed because I was fed with Pagespeed... so it is not activated.

I have checked the "File ETag" option. I have 4 boxes (iNode, Modified Time, Size and None) and the first three are checked.

In my mind the "problem" comes from WP LSCache because only minified ressourced do NOT have ETag or Last-Modified HTTP headers.
 

Pong

Administrator
Staff member
#4
How did you minify the static files? through LSCWP plugin function? or third party plugin? Is there any possible to provide an example URL for testing?
 
Last edited:
#5
Hi @Pong
Sorry for the long delay.
Yes I use LSCache to minify CSS and JS. I have not any other optimization plugin.
Yes I can give you an URL : https://www.oui-gay.com
Only the following ressources DO NOT have ETag header:
  • https://www.oui-gay.com/min/30956.js
  • https://www.oui-gay.com/min/ea580.css
  • https://www.oui-gay.com/min/f3afe.js
Thanks a lot.
 
Last edited by a moderator:

Pong

Administrator
Staff member
#6
We run some test on our test server and we can see etag without any problem for minified js/css files.
You can log a ticket with us by providing tmp root password and WordPress admin login. We can take a further look.
 
Top