Results 1 to 2 of 2

Thread: .htaccess Expires Headers and zlib Compression

  1. #1
    Join Date
    Jun 2009

    Lightbulb .htaccess Expires Headers and zlib Compression

    I wanted to share another tidbit with the wider audience about adding Expires headers and zlip compression to your .htaccess files.

    php_flag zlib.output_compression on
    php_value zlib.output_compression_level 5
    <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
    Header set Expires "Thu, 15 Apr 2010 20:00:00 GMT"
    Header unset Last-Modified
    Header unset ETag
    FileETag None
    If you use YSlow to analyze your web pages then these will help achieve a better rating. Even if you don't use YSlow these will help speed up your web pages.

  2. #2
    WebVeteran Guest

    Default Even for FLV?

    Normally compressed file formats don't lose more weight by re-compressing them. FLV being one of them (along with MP3, MPGs, JPG, etc) though I have not tested re-compressing a FLV. Have you found good savings by compressing them with zlib?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts