Hostiso Blog

The latest news and announcements about our company, infrastructure and services!

Speed up SocialEngine with .htaccess - Hostiso - Advanced Hosting Solutions

  • April 29th, 2016

You can easily speed up your SocialEngine with adding these rules to you main .htaccess file (by default Hostiso add this for you with any transfer or new setup)

# 1 YEAR <filesMatch "\.(ico|pdf|flv)$"> Header set Cache-Control "max-age=29030400, public" </filesMatch> # 1 WEEK <filesMatch "\.(jpg|jpeg|png|gif|swf)$"> Header set Cache-Control "max-age=604800, public" </filesMatch> # 2 DAYS <filesMatch "\.(xml|txt|css|js)$"> Header set Cache-Control "max-age=172800, proxy-revalidate" </filesMatch> # 1 MIN <filesMatch "\.(html|htm|php)$"> Header set Cache-Control "max-age=60, private, proxy-revalidate" </filesMatch>

<ifModule mod_expires.c> # any Expires Directives go here </ifModule>

<ifModule mod_headers.c> # any Header directives go here </ifModule>

<ifModule mod_expires.c> ExpiresActive On ExpiresDefault A300 ExpiresByType image/x-icon A2592000 ExpiresByType application/x-javascript A3600 ExpiresByType text/css A3600 ExpiresByType image/gif A604800 ExpiresByType image/png A604800 ExpiresByType image/jpeg A604800 ExpiresByType text/plain A300 ExpiresByType application/x-shockwave-flash A604800 ExpiresByType video/x-flv A604800 ExpiresByType application/pdf A604800 ExpiresByType text/html A300 </ifModule>

<ifModule mod_expires.c> ExpiresActive On ExpiresByType image/gif A2592000 ExpiresByType image/png A2592000 ExpiresByType image/jpg A2592000 ExpiresByType image/x-icon A2592000 ExpiresByType application/pdf A2592000 ExpiresByType application/x-javascript A2592000 ExpiresByType text/plain A2592000

# Expires after 4.8 hours ExpiresByType text/css A17200 </ifModule>

<ifModule mod_expires.c> ExpiresActive On ExpiresDefault A86400 ExpiresByType image/x-icon A2592000 ExpiresByType application/x-javascript A2592000 ExpiresByType text/css A2592000 ExpiresByType image/gif A604800 ExpiresByType image/png A604800 ExpiresByType image/jpeg A604800 ExpiresByType text/plain A604800 ExpiresByType application/x-shockwave-flash A604800 ExpiresByType video/x-flv A604800 ExpiresByType application/pdf A604800 ExpiresByType text/html A900 </ifModule>

<ifModule mod_headers.c> # YEAR <filesMatch "\.(ico|gif|jpg|jpeg|png|flv|pdf)$"> Header set Cache-Control "max-age=29030400" </filesMatch> # WEEK <filesMatch "\.(js|css|swf)$"> Header set Cache-Control "max-age=604800" </filesMatch> # 45 MIN <filesMatch "\.(html|htm|txt)$"> Header set Cache-Control "max-age=2700" </filesMatch> </ifModule>

Want regular updates?

Our engineers and developers are always posting interesting articles regarding the latest announcements and guides in the world of cloud hosting.

Subscribe via RSS

What Our Customers Say

We've helped hundreds of clients with custom server solutions, enabling them to operate much more efficient and secure than they ever did before.

Hostiso are polite guys with rich experience in linux and script support. They know how to run hosting biz and that is why they are concerned about their customers comfort.

Mark Miller
Health Company

Finally, after so many hosts for now I feel I have found hosting provider that I will stay for long with. The main reason of my satisfaction as a customer is their support.

Tom Smith
Video Streaming Company

Hostiso is comfortable to deal with for such a novice in hosting like me. They have polite staff who interact with customers in high professional manner.

Mia Fonda
SAAS Billing Solutions

Looking for a custom solution?



Our support can help you with the best custom made solutions on the market, no

matter whether you're a small business or large enterprise.

Get in touch