Live Demo

Response Object Deep Dive

Buffer control, content types, headers, and status codes

Buffer Control

Response.Buffer controls whether output is sent immediately or buffered.

This text was written with Response.Write. Buffer is True.

Content Type

Current ContentType: text/html

ContentType set to text/plain. View page source or check DevTools Network tab to verify.

Custom Headers & Status

Set custom HTTP headers and different status codes.

Cache Control & Expires

Control browser/proxy caching behavior.

Expires: CacheControl: Charset: utf-8

Redirect Demo

Clicking these links sends a 302 redirect via Response.Redirect.