April 20, 2010

TEXT SIZE minus plus

Force Caching With .htaccess Method To Increase Loading Speed Of Your Site

Advertisement
You Might Be Interested In Our Popular Article
  • Most Essential Free Softwares After Windows Installation
  • This hack will not increase the loading speed of your website directly. But instead, this will load the content of your site much faster when same user (returning visitor) visits your site again by sending 304 status for the components which have not been modified. Currently the cache expiry is set to one day, but you can change it accordingly by modifying the number of seconds, i.e. 86400 in our case.

    This simple tutorial will help you achieve this in a snap.

    Technique:

    Note: Do take backup of your .htaccess(hypertext access) file.

    01. Search for a file named .htaccess(hypertext access) in the webroot of your server (FTP) and can be easily edited using any text editor (like Notepad). Open it and add below code in it:

    FileETag MTime Size
    ExpiresActive on
    ExpiresDefault “access plus 86400 seconds”

    02. Save and you are done.

    This concludes this simple and useful tutorial. Hope you like it.



    Related Posts From Network
    Print

    About the Author

    When I was born I was so shocked I didn't speak for a year and half...... My brain has 2 parts, Right and Left, The Right one has nothing left in it and the Left one has nothing right in it......Who says Nothing is Impossible?? I've been doing nothing for years......
    • http://www.joselise.com/wp/2010/04/21/links-for-2010-04-20/ links for 2010-04-20 at DeStructUred Blog

      [...] Force Caching With .htaccess Method To Increase Loading Speed Of Your Site | TutZone (tags: wordpress php hack cache htaccess) [...]

    • http://www.designfloat.com/story/161616/ designfloat.com

      Force Caching With .htaccess Method To Increase Loading Speed Of Your Site…

      This hack will not increase the loading speed of your website directly. But instead, this will load the content of your site much faster when same user (returning visitor) visits your site again by sending 304 status for the components which have not b…

    • http://www.tripwiremagazine.com/2010/04/user-linkforce-caching-with-.htaccess-method-to-increase-loading-speed-of-your-site.html [User Link:Force Caching With .htaccess Method To Increase Loading Speed Of Your Site] | Tips for Designers and Developers | tripwire magazine

      [...] Force Caching With .htaccess Method To Increase Loading Speed Of Your Site [...]

    • http://www.tripwiremagazine.com/2010/04/200-more-useful-fresh-articles-for-designers-and-developers.html 200+ More Useful Fresh Articles for Designers and Developers | tripwire magazine

      [...] Force Caching With .htaccess Method To Increase Loading Speed Of Your Site [...]

    • http://www.favshare.net favSHARE

      This article has been shared on favSHARE.net. Go and vote it!

    • http://www.favshare.net favSHARE

      This article has been shared on favSHARE.net. Go and vote it!

    • Max

      you might want to mention this requires the “mod_expires” Apache module.

    • Max

      you might want to mention this requires the “mod_expires” Apache module.

    • juicybracelet

      Thanks for the post.

    • juicybracelet

      Thanks for the post.

    • http://techmasher.co.cc Pritush

      what should i do so that it expires after x months or xdays

    • http://techmasher.co.cc Pritush

      what should i do so that it expires after x months or xdays

    • http://www.tutzone.org/ Bariski

      You have to modify this line:
      ExpiresDefault “access plus 86400 seconds”

      Convert months to seconds and edit it.

    • http://www.tutzone.org/ Bariski

      You have to modify this line:
      ExpiresDefault “access plus 86400 seconds”

      Convert months to seconds and edit it.

    • http://profiles.yahoo.com/u/KKRXQDWMHIFRCRPRTQ7IYJMCLQ Maria lorena

      This is a great article. Very useful and well explained.

    blog comments powered by Disqus