Table of Contents

IsClientSideResourceCached Method

Definition

IsClientSideResourceCached(IDecorator<HttpRequest>, ChecksumBuilder)

Determines whether a cached version of the enclosed HttpRequest of the decorator is found client-side using the If-None-Match HTTP header.

public static bool IsClientSideResourceCached(this IDecorator<HttpRequest> decorator, ChecksumBuilder builder)

Parameters

decorator IDecorator<HttpRequest>

The IDecorator<T> to extend.

builder ChecksumBuilder

A ChecksumBuilder that represents the integrity of the client.

Returns

bool

true if a cached version of the enclosed HttpRequest of the decorator is found client-side; otherwise, false.

Exceptions

ArgumentNullException

decorator cannot be null -or builder cannot be null.

IsClientSideResourceCached(IDecorator<HttpRequest>, DateTime)

Determines whether a cached version of the enclosed HttpRequest of the decorator is found client-side using the If-Modified-Since HTTP header.

public static bool IsClientSideResourceCached(this IDecorator<HttpRequest> decorator, DateTime lastModified)

Parameters

decorator IDecorator<HttpRequest>

The IDecorator<T> to extend.

lastModified DateTime

A DateTime value that represents the modification date of the content.

Returns

bool

true if a cached version of the enclosed HttpRequest of the decorator is found client-side; otherwise, false.

Exceptions

ArgumentNullException

decorator cannot be null.