kostas + apache   14

htaccess tester
"To test your htaccess rewrite rules, simply fill in the url that you're applying the rules to, place the contents of your htaccess on the larger input area and press "Check Now" button."
tools  webdev  apache 
may 2011 by kostas
Two Simple Rules for HTTP Caching - HttpWatch Blog
"In practice, you only need two settings to optimize caching:
1. Don’t cache HTML
2. Cache everything else forever

So here’s the icing on the cake; you don’t actually need to change the filename, just the URL. A simple way to do this is to append a query string parameter onto the end of the existing URL when the resource has changed."
apache  optimize 
may 2010 by kostas
Speed Tips: Use Multiple SubDomains
From a comment on that page: "The more connections you force the client to open, the more data the browser must send upstream in the HTTP request headers. This is especially true if you have a gigantic site cookie collection on the domain you’re serving assets from, then this exacerbates the problem because with each connection, a client must upload the whole cookie every time it makes a request. Do you really want a browser to send a 4K cookie upstream at 128kbps in order to download a 53 byte clear.gif at 768kbps? It is always best if possible to serve assets (js, css, images) from a separate hostname/subdomain so that your main site’s cookies are not transmitted upstream with each and every request (static content rarely, if ever, needs to access a cookie)."
apache  optimize 
may 2010 by kostas
Speed Tips: Add Future Expires Headers
"A first-time visitor to your page will make several HTTP requests to download all your sites files, but using the Expires header you make those files cacheable. This avoids unnecessary HTTP requests on subsequent page views. Expires headers should be used on all components including scripts, stylesheets, and Flash components."
apache  optimize 
may 2010 by kostas
Speed Tips: Turn On Compression
"Apache 2 uses mod_deflate to quickly and easily compress your static .css and .js files before you send them to a client."
apache  optimize 
may 2010 by kostas
Speed Tips: Remove Last-Modified Header
"If you remove the Last-Modified and ETag header, you will totally eliminate If-Modified-Since and If-None-Match requests and their 304 Not Modified Responses, so a file will stay cached without checking for updates until the Expires header indicates new content is available!"
apache  optimize 
may 2010 by kostas
Speed Tips: Turn Off ETags
"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. Basically you can remove If-Modified-Since and If-None-Match requests and their 304 Not Modified Responses."
apache  optimize 
may 2010 by kostas
Compress Web Output Using mod_gzip and Apache
This article is old; it refers to mod_gzip which isn't the standard for Apache 2 (mod_deflate is).
apache 
may 2010 by kostas

Copy this bookmark:



description:


tags: