Пример #1
0
 /// <summary>
 /// Processes if request is modified.
 /// </summary>
 /// <param name="request">The request.</param>
 /// <param name="response">The response.</param>
 /// <param name="fileName">The name.</param>
 /// <param name="modifiedDate">The modifie date.</param>
 /// <returns></returns>
 static public bool ProcessModified(this HttpRequest request, HttpResponse response, string fileName, DateTime modifiedDate)
 {
     if (request.IsFileModified(fileName, modifiedDate))
     {
         response.AppendModifiedMeta(fileName, DateTime.Now);
         return(true);
     }
     else
     {
         response.ReturnNotModified(fileName, DateTime.Now);
         return(false);
     }
 }