Etag generation customization

#1
Does Litespeed honor the FileEtag apache directive?

http://httpd.apache.org/docs/2.0/mod/core.html#fileetag

I am trying to figure out a way to make sure all of our backend servers report the same Etag for a given file without dynamically generating the Etags via a php script.

I tried putting the following directive in an .htaccess file as well as in the server configuration, but neither seemed to work:

FileETag Mtime Size
 

mistwang

LiteSpeed Staff
#4
Is it for dynamic contents or static files?
Anyway, it is hard to do with either one. My suggestion is to avoid distributing the same file on multiple servers if you can. With LSWS, you probably don't need to do, one server should be more than enough to serve static file with any kind of volume. Just make sure your load balancer forward requests to the same file to the same backend server if there is one.

If you mixed static and dynamic content together on your backend servers, I suggest you to serve static file from a dedicate subdomain from one dedicate server.
 
#5
It is for static files. I thought lsws doesn't apply the etag header to dynamic files. We ended up having to filter static requests to a single server in order to get around this issue. Thanks for the help.

Barry
Wordpress
 

mistwang

LiteSpeed Staff
#7
It should work with LiteSpeed, the script add ETag instead of the server.
Adding expires header and gzip can be done by LSWS along.
 
Top