private ContentCommand RegisterWebContent(string webAppRootDir, IFileCache fileCache, IWebServerConfiguration config) { string contentRootDirectory = Path.GetFullPath(Path.Combine(webAppRootDir, "Content")); ContentCommand contentCommand = new ContentCommand(contentRootDirectory, FileSystem, fileCache); contentCommand.CacheByMaxAge(@"cached-by-max-age.txt", TimeSpan.FromDays(30)); contentCommand.CacheByETag(@"cached-by-etag.txt", TimeSpan.FromDays(10), () => GenerateContentETag(config)); return(contentCommand); }