Merging s-maxage and max-age

Discussion in 'Install/Configuration' started by raymond, Dec 17, 2013.

  1. raymond

    raymond New Member

    I currently have this in my htaccess:

    Code:
    <IfModule mod_headers.c>
      Header set Cache-Control 's-maxage=604800'
    </IfModule>
    <IfModule mod_expires.c>
      ExpiresActive On
      ExpiresByType text/html A86400
    </IfModule>
    HTTP headers will show as...

    Code:
    Cache-Control: s-maxage=604800
    Cache-Control: max-age=86400
    Expires: Wed, 18 Dec 2013 03:51:18 GMT
    I would like to merge s-maxage and max-age in one line so that it will look like this:

    Code:
    Cache-Control: max-age=86400, s-maxage=604800
    In Apache, the following .htaccess works:

    Code:
    <IfModule mod_expires.c>
      ExpiresActive On
      ExpiresByType text/html A86400
    </IfModule>
    <IfModule mod_headers.c>
      Header merge Cache-Control 's-maxage=604800'
    </IfModule>
    But when used in LiteSpeed Enterprise, the HTTP response headers still shows a separate cache-control in two lines.
  2. NiteWave

    NiteWave Administrator

    I think currently lsws not support
    Header merge Cache-Control 's-maxage=604800'
    yet

    can you give more reasons how it's important ? :)

Share This Page