02-18-2012, 10:33 AM
Rob Wrote:No issues here. One thing I did notice though is that you are only gzipping the php files. You should gzip all text (php,html,js,css).
Also, not a major thing, but you are only using ETags vs also using a Cache-Control/Expires header for static files. You should typically use both. When just using an ETag the browser still sends a request to the server for every static file, the server just sends back a 304 Not Modified if the ETags match, then the browser uses the file from cache. If you set a future Cache-Control/Expires header the browser will use the cache until expiration. Then the server can still send a 304 and set a new Expires header, and the browser will use the cache again.
Just by doing that you could eliminate 29 requests from the http://in-uo.net/forums page.
Now using mod_deflate and mod_expires to add expires headers and zip all content. For some reason css and javascript aren't compressing and after an hour of trying to find out why, I'm giving up for now.
I'm seeing marked improvements though, and I'm working on implementing a CDN.
Quote:###################Expires Headers##########
FileETag None
ExpiresActive On
ExpiresDefault A600
ExpiresByType image/x-icon A2592000
ExpiresByType application/x-javascript A604800
ExpiresByType text/css A604800
ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/jpeg A2592000
xpiresByType image/x-icon A2592000
ExpiresByType text/plain A86400
ExpiresByType application/x-shockwave-flash A2592000
ExpiresByType video/x-flv A2592000
ExpiresByType application/pdf A2592000
ExpiresByType text/html A600
###################Expires Headers##########
#Gzip
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
#End Gzip
Lemme know if you see anything else that needs changing. I see a few things to edit, but they're nit-picky and I'll have to get to them later. (Like the vote sites loading external images that aren't cached.)

