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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > [Solved] How do I set up expire headers for images. js, and css?

Reply
 
Thread Tools Display Modes
  #1  
Old 01-16-2011, 06:53 PM
azn_romeo_4u azn_romeo_4u is offline
Member
 
Join Date: Jan 2008
Posts: 48
Default [Solved] How do I set up expire headers for images. js, and css?

I have this is in the LST control panel under General > Expire Settings

Enable Expires: Yes
Expires Default: Blank
Expires By Type: image/*=A604800, text/css=A604800, application/x-javascript=A604800

When I use Yslow to check, it doesn't say that its expiring.
Reply With Quote
  #2  
Old 01-17-2011, 01:27 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
Are you using LiteSpeed with hosting control panel(like cPanel/WHM)? or configure everything(including server/vhosts, etc) in native LiteSpeed admin console?
Reply With Quote
  #3  
Old 01-17-2011, 08:18 AM
azn_romeo_4u azn_romeo_4u is offline
Member
 
Join Date: Jan 2008
Posts: 48
Using Cpanel/WHM and I have access to root server. But yea i'm not very familar with everything.

I'm trying to set the images/css/js to expire in 30 days.
Reply With Quote
  #4  
Old 01-17-2011, 10:21 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
mod_expires for Apache needs to be configured/enabled in cPanel/WHM: since LSWS reads configuration from Apache (set by cPanel), mod_expires needs to be enabled in order for LSWS expires to work (http://www.litespeedtech.com/support...ead.php?t=4362).

In lsws native configuration (not come from apache's httpd.conf), Expires header is enabled by default as you posted earlier:
Quote:
General > Expire Settings

Enable Expires: Yes
Expires Default: Blank
Expires By Type: image/*=A604800, text/css=A604800, application/x-javascript=A604800
Reply With Quote
  #5  
Old 01-20-2011, 10:00 AM
azn_romeo_4u azn_romeo_4u is offline
Member
 
Join Date: Jan 2008
Posts: 48
Thank you. Solved.
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:50 PM.



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