I have a folder with two files: test.css and test.css.gz.
Browser requests test.css
Apache checks if browser can accept gzip compressed files
Yes:
I want to be able to do that in Litespeed.
I have tried to do this with RewriteRules and stuff, the problem is that litespeed gives the wrong headers, instead of Content-Type text/css Content-Encoding gzip it gives Content-Type gzip. This might be my fault, but I have no idea how to fix this.
Browser requests test.css
Apache checks if browser can accept gzip compressed files
Yes:
Apache checks if a precompressed file exists:
Yes:
No:Yes:
Apache serves the test.css.gz
No:Apache gzips test.css
Apache serves test.css ungzipped
I want to be able to do that in Litespeed.
I have tried to do this with RewriteRules and stuff, the problem is that litespeed gives the wrong headers, instead of Content-Type text/css Content-Encoding gzip it gives Content-Type gzip. This might be my fault, but I have no idea how to fix this.