Etag generation customization

Discussion in 'Install/Configuration' started by bazza, Jan 29, 2007.

  1. bazza

    bazza New Member

    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
  2. mistwang

    mistwang LiteSpeed Staff

    This directive is not supported.
  3. bazza

    bazza New Member

    Any suggestions on how to generate consistent etags across multiple backend web servers?
  4. mistwang

    mistwang LiteSpeed Staff

    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. bazza

    bazza New Member

    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
  6. pguy

    pguy New Member

  7. mistwang

    mistwang LiteSpeed Staff

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

Share This Page