Apache server-side files caching via .htaccess?

Posted by purpler on Stack Overflow See other posts from Stack Overflow or by purpler
Published on 2010-04-30T19:03:19Z Indexed on 2010/04/30 19:07 UTC
Read the original article Hit count: 213

Filed under:
|
|
|
|

Hi,

  1. I'm starting new website and gonna include several JS libs and would like to know how .htaccess file template should look like with caching of media and JS files on?

  2. Whats better for compression, GZip or Deflate?

  3. Is it better/faster solution to serve those JS libs of the Google CDN perhaps then locally?

I'm asking CDN question since some of scripts served off GoogleCDN are potentially going to update and eventually break the website layout so i thought it would be better for me to host them locally and cache via webserver if its going to work with same/near-same speed.

© Stack Overflow or respective owner

Related posts about .htaccess

Related posts about apache2