Added caching for web gallery