Merging s-maxage and max-age

raymond

Active Member
#1
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.
 
Top