Sunday, August 30th, 2009
Web Developers sometimes use file.ext?v=004 as a version control system to force visitors to use updated files. This is terrible. Instead link to apache-003.css and set it to be cached forever. When you change the file you just change the links to apache-004.css. That eliminates millions of bandwidth and resource robbing If-Modified-Since requests. You only need Apache with mod_rewrite, and 1-10 minutes!
Tags: Cache, Cache-Control, caching, htaccess, If-Modified-Since, mod_rewrite
Posted in Apache, CSS, Cache, DreamHost, Featured, SEO, Security, Server Administration, Web Design, Web Hosting, Webmaster, XHTML, htaccess, mod_rewrite | No Comments »
Saturday, January 10th, 2009
This is not an introduction to .htaccess… This is the evolution of .htaccess… The BEST, the ORIGINAL, the NEWEST, and the most HIGHEST, FLYEST .htaccess tricks I can find.
Originally known as the “Ultimate .htaccess Guide”, its changed over the years by adding new .htaccess tricks and .htaccess examples to it.. I also add my favorite .htaccess links, the best .htaccess articles on AskApache, the coolest .htaccess experiments, the Web’s best .htaccess hacks, and update this article on the regular.
Tags: .htaccess examples, Apache, Cache, caching, Files, FilesMatch, Google, Hacking, howto, htaccess, htaccess guide, htaccess help, htaccess howto, htaccess rewrite, htaccess tricks, htaccess tutorial, httpd, litespeed, mod_rewrite, Mod_Security, rewritecond, rewriterule, sample .htaccess, Security, SEO, seo secrets, SetEnvIf, ssl, ultimate htaccess
Posted in Apache, Apache Modules, Cache, DreamHost, Featured, Google, Hacking, Linux Unix BSD, SEO, Security, Web Design, Web Hosting, Web Tools, Webmaster, WordPress, htaccess, mod_rewrite | 53 Comments »
Saturday, October 18th, 2008
Learn how to setup, configure, secure, optimize, and create a low-maintenance website the AskApache way. I’m piecing together all the hacks, tricks, methods, and ideas discussed throughout this blog and all across Netdom and glueing them all together to show you how to have the most optimized, crazy fastest, and best website setup I can think of.
Tags: Apache, Cache, compression, hosting, htaccess, optimization, Security, server
Posted in Apache, Cache, DreamHost, Featured, Hacking, Linux Unix BSD, PHP, SEO, Security, Shell Scripting, Web Design, Web Hosting, Webmaster, WordPress, htaccess | 5 Comments »
Wednesday, July 2nd, 2008
PHP’s fsockopen function lets you open an Internet or Unix domain socket connection for connecting to a resource, and is one of the most powerful functions available in the php language.
Tags: Cache, Fsockopen, Hacking, HTTO, linux, Networking, Performance, PHP, Pipelining, Socket
Posted in Cache, Featured, Hacking, Linux Unix BSD, PHP, Security, Webmaster | 3 Comments »
Monday, February 4th, 2008
How I was able to preload many flash flv and swf files on one of my clients sites that has a lot of online video and relatively small traffic. Their site visitors would usually watch 3-10 videos per visit and so to make the videos load almost instantly on every page I came up with a way to preload the top 10 .flv files and the swf flv player files as soon as the visitor successfully started watching the 1st video. Of course I also setup .htaccess caching on the server so that once they downloaded the files into their cache they would never request them from the server again. I was having fun with this so its pretty funky and uses some really cool combinations of javascript, swf preloader from xml, css classes to help automate it all..
Tags: Cache, Flash, preload
Posted in Cache, Flash, Web Design, htaccess | 4 Comments »
Monday, September 10th, 2007
By removing the ETag header, you disable caches and browsers from being able to validate files, so they are forced to rely on your Cache-Control and Expires header.
Tags: Cache, optimization, YSlow
Posted in Apache, Cache, DreamHost, Featured, htaccess | 6 Comments »