Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Improving Website Speed
#16

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. Tongue

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.)


Messages In This Thread
Improving Website Speed - by Eru - 02-14-2012, 08:19 AM
Improving Website Speed - by Elcid - 02-14-2012, 08:20 AM
Improving Website Speed - by Boomrak Brewforge - 02-14-2012, 08:34 AM
Improving Website Speed - by Taran - 02-14-2012, 08:56 AM
Improving Website Speed - by Brandon - 02-14-2012, 08:58 AM
Improving Website Speed - by Azzo - 02-14-2012, 10:00 AM
Improving Website Speed - by hilbertsawhat - 02-14-2012, 10:16 AM
Improving Website Speed - by Atlas - 02-14-2012, 01:45 PM
Improving Website Speed - by Carding - 02-14-2012, 01:56 PM
Improving Website Speed - by Taran - 02-14-2012, 02:03 PM
Improving Website Speed - by Raziel_ - 02-14-2012, 02:16 PM
Improving Website Speed - by Rob - 02-14-2012, 03:58 PM
Improving Website Speed - by Doc - 02-14-2012, 04:52 PM
Improving Website Speed - by Nasir - 02-14-2012, 06:18 PM
Improving Website Speed - by Rob - 02-14-2012, 07:06 PM
Improving Website Speed - by Eru - 02-18-2012, 10:33 AM
Improving Website Speed - by Eru - 02-18-2012, 07:03 PM
Improving Website Speed - by Rob - 02-18-2012, 09:34 PM
Improving Website Speed - by Eru - 02-18-2012, 10:11 PM
Improving Website Speed - by Rachet - 02-18-2012, 11:34 PM
Improving Website Speed - by Scare crow - 02-19-2012, 12:33 AM
Improving Website Speed - by soMa - 02-19-2012, 03:16 AM
Improving Website Speed - by sm0ke - 02-19-2012, 03:54 AM
Improving Website Speed - by Eru - 02-19-2012, 04:33 AM
Improving Website Speed - by Nasir - 02-22-2012, 09:08 PM
Improving Website Speed - by Eru - 02-23-2012, 10:57 PM
Improving Website Speed - by Eru - 02-24-2012, 06:59 AM
Improving Website Speed - by Elcid - 02-26-2012, 01:54 PM
Improving Website Speed - by Eru - 02-26-2012, 09:36 PM
Improving Website Speed - by Elcid - 02-27-2012, 01:18 AM
Improving Website Speed - by Eru - 02-27-2012, 04:32 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)