Forum Moderators: phranque
On a positive note, PHP and MySQL are running noticeably faster on the dedicated server! It just seems odd that the images are loading much slower on the dedicated server (RedHat ES w/Apache 2.0).
Just in case, I opened another thread in WebmasterGeneral to see if it may be related to the IP address I was provided.
Let me know if there is any information I could provide to better assist me.
Thanks!
Use the server headers check in the WebmasterWorld control panel and check the cache-control headers on image requests.
Jim
I've tried clearing the cache and testing both sites - and then simply doing a refresh once the images are in the cahce and both times the old shared server supplies the images faster.
I even tried a tool on NetMechanic.com where it times load times - and each test shows it was able to load pages faster on the old server.
Below are the headers from both servers:
OLD VPS
HTTP/1.1 200 OK
Date: Thu, 22 Jul 2004 22:11:54 GMT
Server: Apache/1.3.22 (Unix) PHP/4.3.1 mod_perl/1.26 FrontPage/5.0.2.2623 AuthMySQL/2.20 mod_ssl/2.8.5 OpenSSL/0.9.6a
X-Powered-By: PHP/4.3.1
Set-Cookie: PHPSESSID=38978d6bf343ad44b790ad06b6668b15; path=/
Cache-Control: private, max-age=10800, pre-check=10800
Last-Modified: Thu, 1 Jul 2004 04:21:35 GMT
Set-Cookie: Referal_URL=deleted; expires=Wed, 23-Jul-03 22:11:53 GMT; path=/; domain=.domain-name.com
Content-Encoding: gzip
Vary: Accept-Encoding
Connection: close
Content-Type: text/html
DEDICATED
HTTP/1.1 200 OK
Date: Thu, 22 Jul 2004 22:16:01 GMT
Server: Apache/2.0.46 (Red Hat)
Accept-Ranges: bytes
X-Powered-By: PHP/4.3.2
Set-Cookie: PHPSESSID=f5b9ba46402b8c8963b0819ef0cfe1db; path=/
Cache-Control: private, max-age=10800, pre-check=10800
Last-Modified: Tue, 20 Jul 2004 22:34:56 GMT
Set-Cookie: Referal_URL=deleted; expires=Wed, 23-Jul-2003 22:16:00 GMT; path=/; domain=.domain-name.com
Content-Encoding: gzip
Vary: Accept-Encoding
Connection: close
Content-Type: text/html; charset=UTF-8
OLD VPS SERVER
HTTP/1.1 200 OK
Date: Thu, 22 Jul 2004 22:38:33 GMT
Server: Apache/1.3.22 (Unix) PHP/4.3.1 mod_perl/1.26 FrontPage/5.0.2.2623 AuthMySQL/2.20 mod_ssl/2.8.5 OpenSSL/0.9.6a
Last-Modified: Tue, 04 May 2004 21:26:48 GMT
ETag: "111df4-236d-40980a98"
Accept-Ranges: bytes
Content-Length: 9069
Keep-Alive: timeout=120, max=100
Connection: Keep-Alive
Content-Type: image/jpeg
NEW DEDICATED
HTTP/1.1 200 OK
Date: Thu, 22 Jul 2004 22:37:55 GMT
Server: Apache/2.0.46 (Red Hat)
Last-Modified: Tue, 04 May 2004 21:26:48 GMT
ETag: "60689e-236d-f7a5d600"
Accept-Ranges: bytes
Content-Length: 9069
Connection: close
Content-Type: image/jpeg
w/o the keepalive enabled the browser needs to open a new socket connection to the server each time it wants to request a file, making each request slower. With keepalive enabled the browser re-uses the first connection for a certain time (you can control this in your server), so if you have 30 images on a html page, the browser can use the same connection for each of the images, which is considerably faster than 30 individual requests.