Problem with mod_headers

Discussion in 'Apache Migration/Compatibility' started by remlabm, Jun 4, 2009.

  1. remlabm

    remlabm New Member

    I am just testing out litspeed to see if it would be benificial for me to migrate to. i am having an issue with mod headers though.

    Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
    Header set Pragma "no-cache"
    Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"

    Does not seem to work in my .htaccess file. and yes i do have .htaccess enabled.

    any ideas?
  2. auser

    auser Super Moderator

  3. remlabm

    remlabm New Member

    thanks for that idea.

    checked and it is on. looks like the headers are being set to. still receiving an error on my device though.

    comparing the header data the only difference between apache2 and litespeed is:
    Content-Range: bytes 0-10120/10121

    apache2 has content-range set, but not litespeed.

    any ideas on that?
  4. mistwang

    mistwang LiteSpeed Staff

    Is this a range request? Apache return 206 status code?
    Looks like it gets the whole file, LiteSpeed will not return "Content-Range" if whole file was returned.
  5. remlabm

    remlabm New Member

    yes it is returning 206 in apache and 200 in litespeed
  6. mistwang

    mistwang LiteSpeed Staff

    Do you have the request header? You can PM me if you do not want to post it here.

Share This Page