mirror of
https://git.teknik.io/Teknikode/Teknik.git
synced 2023-08-02 14:16:22 +02:00
Re-enabled dl cache since the RST seems to be fixed.
This commit is contained in:
parent
6708fc2de6
commit
d7994ef6ff
@ -182,18 +182,18 @@ namespace Teknik.Areas.Upload.Controllers
|
|||||||
// Check for the cache
|
// Check for the cache
|
||||||
bool isCached = false;
|
bool isCached = false;
|
||||||
string modifiedSince = Request.Headers["If-Modified-Since"];
|
string modifiedSince = Request.Headers["If-Modified-Since"];
|
||||||
//if (!string.IsNullOrEmpty(modifiedSince))
|
if (!string.IsNullOrEmpty(modifiedSince))
|
||||||
//{
|
{
|
||||||
// DateTime modTime = new DateTime();
|
DateTime modTime = new DateTime();
|
||||||
// bool parsed = DateTime.TryParse(modifiedSince, out modTime);
|
bool parsed = DateTime.TryParse(modifiedSince, out modTime);
|
||||||
// if (parsed)
|
if (parsed)
|
||||||
// {
|
{
|
||||||
// if ((modTime - dateUploaded).TotalSeconds <= 1)
|
if ((modTime - dateUploaded).TotalSeconds <= 1)
|
||||||
// {
|
{
|
||||||
// isCached = true;
|
isCached = true;
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
//}
|
}
|
||||||
|
|
||||||
if (isCached)
|
if (isCached)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user