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

Improving Website Speed
#13

i have slow speed to forum
Quote:Ответ от 50.22.104.139: число байт=32 время=173мс TTL=45
Ответ от 50.22.104.139: число байт=32 время=173мс TTL=45
Ответ от 50.22.104.139: число байт=32 время=172мс TTL=45
Ответ от 50.22.104.139: число байт=32 время=172мс TTL=45
Ответ от 50.22.104.139: число байт=32 время=172мс TTL=45
Ответ от 50.22.104.139: число байт=32 время=173мс TTL=45
Ответ от 50.22.104.139: число байт=32 время=173мс TTL=45
Ответ от 50.22.104.139: число байт=32 время=173мс TTL=45

Статистика Ping для 50.22.104.139:
Пакетов: отправлено = 8, получено = 8, потеряно = 0 (0% потерьWink,
Приблизительное время приема-передачи в мс:
min = 172мсек, max = 173 мсек, aver = 172 мсек
#14

[Image: tumblr_lxra4q4zzS1r8lg7to1_500.jpg]
(http://programmerryangosling.tumblr.com)
#15

haha love it. I'd seen the regular one and my wife showed me the teacher one.
#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.)
#17

Removed:
Re-Added:
ExpiresDefault A600
Since that causes the forums to not update as read.

Added to /forums .htaccess


ExpiresDefault access
#18

Eru Wrote:Removed:
Re-Added:
ExpiresDefault A600
Since that causes the forums to not update as read.

Added to /forums .htaccess


ExpiresDefault access

It's text/javascript instead of application/x-javascript. That is probably why js isn't getting cached.

Good job. Pages seem to be pretty instant for me now.
#19

Added text/javascript also with no changes. :/ I also tried setting the MIME types manually for css and javascript in the .htaccess file with no change. Cleared local cache and website cache as well. I'm lost.
#20

In Canada and works fine for me.
#21

I'm in Canada too, fast as hell.
#22

The forums were slow for a bit but could have been on my end. The website seems fine.
#23

Eru Wrote:Added text/javascript also with no changes. :/ I also tried setting the MIME types manually for css and javascript in the .htaccess file with no change. Cleared local cache and website cache as well. I'm lost.

Grats on your 1337 post count ^_^
#24

Thanks, Going to spoil it.

[s]Removed ExpiresByType text/html A600[s]

Silly thing was caching the HTML for having a thread/forum marked as read/unread. Everyone clear your cache if something looks like it's not updating, or press Ctrl+F5.

-edit-
Disregard, I just set text to non expiring in the forums.

Quote:ExpiresDefault access
ExpiresByType text/plain access
ExpiresByType text/html access


Forum Jump:


Users browsing this thread: 4 Guest(s)