70-564 Free Dumps Study Materials
Question 19: You are creating an ASP.NET application by using the .NET Framework 3.5.
You write the following code:
01.Dim fileDependencyPath As String =
Server.MapPath("\BatchOutput.xml")
02
03 Response.Cache.SetValidUntilExpires(True)
You need to ensure that all sessions display the most recent data when a batch process updates the
\BatchOutput.xml file.
What code fragment should you insert at line 02?
A. Response.AddCacheItemDependency(fileDependencyPath)
Response.Cache.SetCacheability(HttpCacheability.Public)
B. Response.AddFileDependency(fileDependencyPath)
Response.Cache.SetCacheability(HttpCacheability.Public)
C. Dim httpcache As HttpCacheability = New HttpCacheability()
Response.Cache.SetCacheability(httpcache, fileDependencyPath)
D. Response.Cache.SetETag(fileDependencyPath)
Response.Cache.SetCacheability(HttpCacheability.Public)
Correct Answer: B