ImageResizer  3.4.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Properties | List of all members
ImageResizer.Caching.IResponseHeaders Interface Reference

Allows customization of response headers for a processed image, as well as configuration of the caching system. More...

Inheritance diagram for ImageResizer.Caching.IResponseHeaders:
Inheritance graph
[legend]

Properties

string ContentType [get, set]
 The mime-type of the output data. Defaults to null. More...
 
HttpCacheability CacheControl [get, set]
 The cache setting. Defaults to ServerAndPrivate More...
 
DateTime Expires [get, set]
 The UTC time at which the cached data should expire. Browsers generally don't re-request resources until the they have expired (unlike modififeddate). If MinValue, will be ignored. More...
 
DateTime LastModified [get, set]
 The UTC modified date send with the response. Used by browsers with If-Modified-Since to check a cached value is still valid. If = MinValue, will be ignored. More...
 
bool ValidUntilExpires [get, set]
 When true: If a client requests a refresh, the response will still be served from the server cache. Defaults to false More...
 
bool SuppressVaryHeader [get, set]
 ASP.Net sometimes sends Vary: * which obliterates caching. Vary is to be avoided anyhow. Defaults to true More...
 
NameValueCollection DefaultHeaders [get, set]
 These headers should be applied first, prior to the application of other settings More...
 
NameValueCollection Headers [get, set]
 These headers are applied after applying all of the other settings. (and they will overwrite exisiting values). More...
 
List< CacheDependency > ServerCacheDependencies [get, set]
 Returns a collection of dependencies used for invalidating the server cache. Note, having items here will disable kernel-mode caching. Perhaps it is better to simply use LastModified More...
 
ApplyResponseHeadersDelegate ApplyToResponse [get, set]
 A delegate method to apply the values stored in IResponseHeaders to the specified HttpContext. More...
 
bool ApplyDuringPreSendRequestHeaders [get, set]
 True if the application should automatically execute ApplyToResponse() during the PreSendRequestHeaders event. More...
 

Detailed Description

Allows customization of response headers for a processed image, as well as configuration of the caching system.

Definition at line 15 of file IResponseHeaders.cs.

Property Documentation

bool ImageResizer.Caching.IResponseHeaders.ApplyDuringPreSendRequestHeaders
getset

True if the application should automatically execute ApplyToResponse() during the PreSendRequestHeaders event.

Definition at line 69 of file IResponseHeaders.cs.

Referenced by ImageResizer.InterceptModule.context_PreSendRequestHeaders().

ApplyResponseHeadersDelegate ImageResizer.Caching.IResponseHeaders.ApplyToResponse
getset

A delegate method to apply the values stored in IResponseHeaders to the specified HttpContext.

Definition at line 65 of file IResponseHeaders.cs.

HttpCacheability ImageResizer.Caching.IResponseHeaders.CacheControl
getset

The cache setting. Defaults to ServerAndPrivate

Definition at line 23 of file IResponseHeaders.cs.

string ImageResizer.Caching.IResponseHeaders.ContentType
getset

The mime-type of the output data. Defaults to null.

Definition at line 19 of file IResponseHeaders.cs.

NameValueCollection ImageResizer.Caching.IResponseHeaders.DefaultHeaders
getset

These headers should be applied first, prior to the application of other settings

Definition at line 49 of file IResponseHeaders.cs.

DateTime ImageResizer.Caching.IResponseHeaders.Expires
getset

The UTC time at which the cached data should expire. Browsers generally don't re-request resources until the they have expired (unlike modififeddate). If MinValue, will be ignored.

Definition at line 29 of file IResponseHeaders.cs.

NameValueCollection ImageResizer.Caching.IResponseHeaders.Headers
getset

These headers are applied after applying all of the other settings. (and they will overwrite exisiting values).

Definition at line 53 of file IResponseHeaders.cs.

DateTime ImageResizer.Caching.IResponseHeaders.LastModified
getset

The UTC modified date send with the response. Used by browsers with If-Modified-Since to check a cached value is still valid. If = MinValue, will be ignored.

Definition at line 34 of file IResponseHeaders.cs.

List<CacheDependency> ImageResizer.Caching.IResponseHeaders.ServerCacheDependencies
getset

Returns a collection of dependencies used for invalidating the server cache. Note, having items here will disable kernel-mode caching. Perhaps it is better to simply use LastModified

Returns

Definition at line 60 of file IResponseHeaders.cs.

bool ImageResizer.Caching.IResponseHeaders.SuppressVaryHeader
getset

ASP.Net sometimes sends Vary: * which obliterates caching. Vary is to be avoided anyhow. Defaults to true

Definition at line 44 of file IResponseHeaders.cs.

bool ImageResizer.Caching.IResponseHeaders.ValidUntilExpires
getset

When true: If a client requests a refresh, the response will still be served from the server cache. Defaults to false

Definition at line 39 of file IResponseHeaders.cs.


The documentation for this interface was generated from the following file: