[reddit change] Moved static files to Amazon S3 and sprite more images.
Over the past few weeks, our traffic has reached the point that when we make a change to our static files (such as the site's CSS or Javascript), our static file server had trouble keeping up with the demand for the new versions. To solve this problem once and for all, we decided to move our static file hosting to Amazon S3. In the process, we made some additional changes to the static files to help improve page load times:
- Cache expirations are set much higher now, so your browser will need to re-fetch unchanged static files much less frequently.
- Static files are now served from
redditstatic.com. By not being part ofreddit.com, your browser will not send your cookies along with the requests for static files. This means that the static files will load faster, especially on slow or high latency connections, as less time will be spent telling the server what you need. - A bunch of images that weren't added to the CSS sprite sheet are now part of it, including the default reddit.com header image. This means fewer images need to be loaded when you visit the site.
- The sprite sheet itself was reorganized to waste less space which resulted in a ~10% decrease in file size.
- Static files are now properly prepared for HTTPS, bringing us one step closer to site-wide SSL support.
EDIT We've temporarily pointed the static files directly at S3 to avoid Websense issues while we talk to them about fixing the lists. It appears that our new domain was caught in a phishing filter or something similar.
EDIT2 Websense has recategorized redditstatic.com. When their updates get deployed we'll switch back to redditstatic.com.
Posted Nov 15, 2011, 5:27 AM UTC · edited