Table of Contents

IsClientSideResourceCached Method

Definition

Namespace
Cuemon.Extensions.AspNetCore.Http
Assemblies
Cuemon.Extensions.AspNetCore.dll
Source
src/Cuemon.Extensions.AspNetCore/Http/HttpRequestExtensions.cs

IsClientSideResourceCached(HttpRequest, ChecksumBuilder)

Determines whether a cached version of the requested resource is found client-side using the If-None-Match HTTP header.

public static bool IsClientSideResourceCached(this HttpRequest request, ChecksumBuilder builder)

Parameters

request HttpRequest

An instance of the HttpRequest object.

builder ChecksumBuilder

A ChecksumBuilder that represents the integrity of the client.

Returns

bool

true if a cached version of the requested content is found client-side; otherwise, false.

Exceptions

ArgumentNullException

request cannot be null -or builder cannot be null.

IsClientSideResourceCached(HttpRequest, DateTime)

Determines whether a cached version of the requested resource is found client-side using the If-Modified-Since HTTP header.

public static bool IsClientSideResourceCached(this HttpRequest request, DateTime lastModified)

Parameters

request HttpRequest

An instance of the HttpRequest object.

lastModified DateTime

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

Returns

bool

true if a cached version of the requested content is found client-side; otherwise, false.

Exceptions

ArgumentNullException

request cannot be null.