Jump to content

setting cache info with htaccess


Recommended Posts

I've honestly never dealt with setitng max expires and that stuff with htaccess and wondering how you guys handle it,

due to some issues with directadmin and nginx (yeah I am still using a panel....) I had to slide back to apache. in my case I think setting the max expires/cahce stuff would be easier through htaccess vs global apache templates.

Link to comment
Share on other sites

i used this:

<IfModule mod_expires.c>
    ExpiresActive On
## VAR ## ExpiresDefault A300
    ExpiresByType image/x-icon A360000
    ExpiresByType image/gif A360000
    ExpiresByType image/png A360000
    ExpiresByType image/jpeg A360000
    ExpiresByType text/css A360000
    ExpiresByType application/x-javascript A360000
    ExpiresByType application/javascript A360000
</IfModule>

also check this: http://www.askapache.com/hacking/speed-site-caching-cache-control.html

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...