IsClientSideResourceCached Method
Definition
- Namespace
- Cuemon.Extensions.AspNetCore.Http
- Assemblies
- Cuemon.Extensions.AspNetCore.dll
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
requestHttpRequestAn instance of the HttpRequest object.
builderChecksumBuilderA ChecksumBuilder that represents the integrity of the client.
Returns
- bool
trueif a cached version of the requested content is found client-side; otherwise,false.
Exceptions
- ArgumentNullException
requestcannot be null -orbuildercannot 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
requestHttpRequestAn instance of the HttpRequest object.
lastModifiedDateTimeA DateTime value that represents the modification date of the content.
Returns
- bool
trueif a cached version of the requested content is found client-side; otherwise,false.
Exceptions
- ArgumentNullException
requestcannot be null.