IsClientSideResourceCached Method
Definition
- Namespace
- Cuemon.AspNetCore.Http
- Assemblies
- Cuemon.AspNetCore.dll
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
decoratorIDecorator<HttpRequest>The IDecorator<T> to extend.
builderChecksumBuilderA ChecksumBuilder that represents the integrity of the client.
Returns
- bool
trueif a cached version of the enclosed HttpRequest of thedecoratoris found client-side; otherwise,false.
Exceptions
- ArgumentNullException
decoratorcannot be null -orbuildercannot 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
decoratorIDecorator<HttpRequest>The IDecorator<T> to extend.
lastModifiedDateTimeA DateTime value that represents the modification date of the content.
Returns
- bool
trueif a cached version of the enclosed HttpRequest of thedecoratoris found client-side; otherwise,false.
Exceptions
- ArgumentNullException
decoratorcannot be null.