LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Expires header not updated when status 304

Reply
 
Thread Tools Display Modes
  #1  
Old 05-25-2007, 12:17 PM
eduardorochabr eduardorochabr is offline
Member
 
Join Date: May 2007
Posts: 14
Default Expires header not updated when status 304

I've noticed that LSWS does not send Expires header in 304 responses, so the browser always uses the old Expires. Shouldn't the Expires be updated?

Use case:

1. First page visit

get /default.css
response: 200, Expires: 25-May-2007 18:00

2. Page visit before expires

(nothing, since browser cached)

3. Page visit after expires

get /default.css
response: 304, etag: '34-342342-2342'

ALL consecutives page visits make the browser request the resource again, based on old Expires.
Reply With Quote
  #2  
Old 05-25-2007, 01:21 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Fix will be in 3.1.2 release.
Reply With Quote
  #3  
Old 05-25-2007, 01:37 PM
eduardorochabr eduardorochabr is offline
Member
 
Join Date: May 2007
Posts: 14
Great news! Thanks!
Reply With Quote
  #4  
Old 05-25-2007, 02:47 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Please download and try http://www.litespeedtech.com/package...6-linux.tar.gz
see if it is fixed.
Reply With Quote
  #5  
Old 05-25-2007, 03:36 PM
eduardorochabr eduardorochabr is offline
Member
 
Join Date: May 2007
Posts: 14
It works, thanks!

However, I have a question. I tested with the Example virtual host, setting image expires to a short time. It worked perfectly, but I didn't get why "index.html" gets cached, do you know why? Just curious.

Will it be available via update, link 3.1.1?

Thanks once again.
Reply With Quote
  #6  
Old 05-25-2007, 03:48 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
It is up to the browser to cache or not to cache a html page unless you have cache control header in the reply.

It will be available via update, we still need working on some features.
Reply With Quote
  #7  
Old 05-30-2007, 04:53 PM
eduardorochabr eduardorochabr is offline
Member
 
Join Date: May 2007
Posts: 14
Default Reinstall

Hi mistwang,

How could I reinstall this version in production smoothly? Is there a way?

If I just reinstall it using the same values, like users and directories, it would be OK? I mena, it would use the same settings as before?

Thanks.
Reply With Quote
  #8  
Old 05-30-2007, 06:20 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Yes, just run the install.sh, then select "upgrade", your current configuration will not be touched.
Reply With Quote
  #9  
Old 05-31-2007, 10:39 PM
eduardorochabr eduardorochabr is offline
Member
 
Join Date: May 2007
Posts: 14
Default 403

Hi mistwang,

I've just upgraded a production server to this version, and the main URL of the site gets a 403, like "http://www.example.com/".

The previous version was 3.1.1-std, and when I switch back it works without problem.

Any idea?

Thank you.

Last edited by eduardorochabr; 05-31-2007 at 10:46 PM..
Reply With Quote
  #10  
Old 06-01-2007, 06:15 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Do you have any request filter rule configured? Maybe turning on "Debug logging" by set "Debug Level" to "High" will help.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:23 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.