HomeMy Projects | Gravatar Local Cache with asp.net 2.0 
PageInfo - RSS, Microformats and Microsummaries for this page

download source download icon
version: Early Beta
Gravatar Local Cache with asp.net 2.0

Live Demo

Submit an email address



Last 10 Tests

Gravatar Sample Image
Created 2 weeks, 1 day ago
Gravatar Sample Image
Created 2 weeks, 1 day ago
Gravatar Sample Image
Created 15 weeks, 3 days ago
Gravatar Sample Image
Created 15 weeks, 3 days ago
Gravatar Sample Image
Created 15 weeks, 3 days ago
Gravatar Sample Image
Created 24 weeks, 5 hours ago
Gravatar Sample Image
Created 26 weeks, 3 hours ago
Gravatar Sample Image
Created 48 weeks, 21 hours ago
Gravatar Sample Image
Created 48 weeks, 21 hours ago
Gravatar Sample Image
Created 49 weeks, 15 hours ago
demo settings: 3 sec timeout
aggressive caching
50px image

This is my asp.net 2.0 solution for caching gravatar images. The gravatar service is great, but sometimes the service can get bogged down.

Features

  • Will cache images as well as page requests
  • Customizable timeout for gravatar.com request
  • Customizable duration to use local cache before getting live icon
  • Fallback if gravatar.com service is still not online but local cache exists

Requirements

  • asp.net 2.0
  • fulltrust web hosting

Installation

  • Extract contents of gravcache.zip to a folder on your web server.
  • Make sure the folder is named 'gravcache'
  • Setup the folder as an asp.net 2.0 starting point
  • Open gravcache.ashx
  • Confirm the default configuration or make changes
  • Make sure the folder you specify in private string CacheStorageFolder = "./gravcache/" has asp.net write access

Usage

  • Once you install the script just replace all references of
  • http://www.gravatar.com/avatar.php with http://yourhost/gravcache/gravcache.ashx

Download

download current build download icon
current version 'Early Beta' - (version history)

Support

Send me a message to request support for an install or runtime issue with Gravatar Cache.

Version History

  • 11/16/2006 version Early Beta - Built a library to generate the gravatar url. First public release.
  • 11/07/2006 version Concept 2 - Updates to allow for fallback if timeout expires and cache is also expired.
  • 11/04/2006 version Concept - Lots of tweaks to how the asp.net http context is cached.