• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

Mod_expires and cache for website

P

pascalito

Guest
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
 
Back
Top