Example #1
0
        public static bool IfModifiedSinceHeaderAndNotModified(this ICurrentHttpRequest request, IFubuFile file)
        {
            var ifModifiedSince = request.IfModifiedSince();

            return(ifModifiedSince.HasValue && file.LastModified().ToUniversalTime() <= ifModifiedSince.Value);
        }