Moderate

In order to prevent a browser from caching a page which of these xstatements should be written ?

Correct answer: C. Response.Cache.SetNoStore();

  • A. Response.Cache.SetNoServerCaching();
  • B. Response.Cache.SetNoCaching();
  • C. Response.Cache.SetNoStore();
  • D. None of these

Explanation

Response.Cache.SetNoStore() instructs clients and intermediary caches not to store the response, making it the standard choice when preventing a page from being cached. SetNoServerCaching() targets server caching rather than browser storage.

Last updated

Practise Web and Mobile Development

268 free Web and Mobile Development MCQs from Software Engineering, each with the correct answer and an explanation. Unlimited attempts, no account needed.

Exams that ask Software Engineering questions like this

Software Engineering is on this paper prepared for on TestUstad, and all of them draw the same bank, so this question is worth knowing for it.

Related questions