Hi,
I need to overwrite via htaccess the cache-control response header with the value of a custom http response header. On Apache I use the following line:
but doesn't work on Litespeed. Seems that litespeed does not support expr infact the cache-control value returned back to the client is:
If I try to force the Cache-Control value but only when another response custom header is present, for example:
Litespeed ignores the condition and sets up Cache-Control: max-age=1 always, even if x-my-second-custom-header is not exists or its value is not 1.
How can I solve?
Thank you!
I need to overwrite via htaccess the cache-control response header with the value of a custom http response header. On Apache I use the following line:
Code:
Header always set Cache-Control "expr=%{resp:x-my-custom-header}"
Code:
Cache-Control: expr={resp:x-wp-cf-super-cache-cache-control}
Code:
Header always set Cache-Control "max-age=1" "expr=resp('x-my-second-custom-header') == '1'"
How can I solve?
Thank you!