When you use the HttpResponse.AddFileDependency(string) method to add a file dependency, you must also specify output caching programmatically or declaratively. For example, to specify output caching declaratively, use the @ OutputCache directive. For more information, see How to: Cache Page Output with File Dependencies.