What is the purpose of setting Response.Buffer = True, Response.ExpiresAbsolute = Now().Subtract(New TimeSpan(1, 0, 0, 0)), Response.Expires = 0, and Response.CacheControl = "no-cache" in a web application?

ASP.net MCQs for PPSC, FPSC, NTS, and Pakistan government job tests. Select an option below, then read the explanation.

PPSCFPSCNTSPakistan govt jobs
Subject
ASP.netsoftware-engineering-mcqs › asp-net
Published
18 Apr 2019
Last updated
28 May 2026

Browse all ASP.net MCQs

Choose the correct answer

Explanation

Setting these properties ensures that the web page is not cached by the browser or proxy servers. Response.Buffer = True enables buffering, Response.ExpiresAbsolute sets the expiration date to a past time, Response.Expires = 0 disables caching, and Response.CacheControl = "no-cache" instructs browsers not to cache the page.

PakQuizHub — free MCQs and past papers for Pakistan government job tests. Content is for educational practice only.