Skip to main content

HttpCacheExtensions

Assembly: ServiceStack.dll​
View Source​
Declaration
public static class HttpCacheExtensions

Methods​

Has(CacheControl, CacheControl)​

View Source​
Declaration
public static bool Has(this CacheControl cache, CacheControl flag)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.CacheControlcache
ServiceStack.CacheControlflag

EndNotModified(IResponse, String)​

View Source​
Declaration
public static void EndNotModified(this IResponse res, string description = null)
Parameters​
TypeName
ServiceStack.Web.IResponseres
System.Stringdescription

ETagMatch(IRequest, String)​

View Source​
Declaration
public static bool ETagMatch(this IRequest req, string eTag)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Web.IRequestreq
System.StringeTag

NotModifiedSince(IRequest, Nullable<DateTime>)​

View Source​
Declaration
public static bool NotModifiedSince(this IRequest req, DateTime? lastModified)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Web.IRequestreq
System.Nullable<System.DateTime>lastModified

HasValidCache(IRequest, String)​

View Source​
Declaration
public static bool HasValidCache(this IRequest req, string eTag)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Web.IRequestreq
System.StringeTag

HasValidCache(IRequest, Nullable<DateTime>)​

View Source​
Declaration
public static bool HasValidCache(this IRequest req, DateTime? lastModified)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Web.IRequestreq
System.Nullable<System.DateTime>lastModified

HasValidCache(IRequest, String, Nullable<DateTime>)​

View Source​
Declaration
public static bool HasValidCache(this IRequest req, string eTag, DateTime? lastModified)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Web.IRequestreq
System.StringeTag
System.Nullable<System.DateTime>lastModified

ShouldAddLastModifiedToOptimizedResults(HttpCacheFeature)​

View Source​
Declaration
public static bool ShouldAddLastModifiedToOptimizedResults(this HttpCacheFeature feature)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.HttpCacheFeaturefeature