1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Mod_expires and cache for website

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by pascalito, Dec 10, 2011.

  1. pascalito

    pascalito Guest

    0
     
    Hello i have plesk installed on my CentOS 5.2 server for my website. I have some trouble the website is slow on rushhour and i want to activate Cache system.

    Mod_expires is installed and active i did everything fro this "tutorial" http://forums.theplanet.com/lofiversion/index.php/t78872.html

    But it doesn't work...

    What i did :

    I created vhost.conf here :

    /home/httpd/vhosts/mysite.com/conf/vhost.conf

    and put this code inside :

    # Enable and set default cache rule
    ExpiresActive On
    ExpiresDefault "access plus 0 minutes"

    # images
    ExpiresByType image/gif "modification plus 1 month"
    ExpiresByType image/png "modification plus 1 month"
    ExpiresByType image/jpeg "modification plus 1 month"

    # html and text (Don't cache)
    ExpiresByType text/html "access plus 0 minutes"
    ExpiresByType text/plain "access plus 0 minutes"

    # other types (Short cache)
    ExpiresByType text/css "access plus 5 days"
    ExpiresByType application/x-javascript "access plus 5 days"

    But it doesn't work somebody have an idea or can help me with that ? Thanks !

    my header info :
    Server: Apache/2.2.3 (CentOS)
    X-Powered-By: PHP/5.1.6
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
     
Loading...