|
cache/compression
|
|
17-06-2009, 07:13 AM
Post: #1
|
|||
|
|||
|
cache/compression
I've been screwing with YSlow lately (Yahoo's very useful website improvement tool), and I've found some useful things I'm not sure if wImg uses for not (but would be very helpful).
1) GZIP For larger files, epicness. I have a 26.5K that is only 8.8K thanks to GZIP. mod_rewrite that shit to some PHP file that does this: if (strpos($_SERVER["HTTP_ACCEPT_ENCODING"], "gzip") !== false) { header("Content-Encoding: gzip"); ob_start("ob_gzhandler"); } And enjoy your faster servers and less bandwidth costs. I don't think it's as effective or even helpful for smaller files. But definately for files 10KB+. I can't imagine the help on files in the MBs. 2) cache It's not like wImg even supports image updating, so the cache for that shit needs to be set to 10 freaking years in the future. There is no reason for that cache to ever expire. Ever. At least for user uploaded files. DO IT. NOW! |
|||
|
17-06-2009, 08:38 PM
Post: #2
|
|||
|
|||
|
RE: cache/compression
It looks like the upload stats page is updated every time its loaded too. It takes about 20 seconds to load for me, while all other pages load instantly.
|
|||
|
17-06-2009, 10:27 PM
Post: #3
|
|||
|
|||
| RE: cache/compression | |||
|
18-06-2009, 04:49 AM
Post: #4
|
|||
|
|||
|
RE: cache/compression
What about the GZIPing and expiration dates?
|
|||
|
18-06-2009, 09:35 AM
Post: #5
|
|||
|
|||
| RE: cache/compression | |||
|
19-06-2009, 04:51 AM
Post: #6
|
|||
|
|||
|
RE: cache/compression
I can definately code them for you if you IM me about it. I just did this for GamingMedley, so I'm familiar with how and have the necessary tools.
|
|||
|
« Next Oldest | Next Newest »
|

Support Home
Search
Member List
Help
wImg Host






