Compare commits
2 Commits
hotfix/FA-
...
v1.1.1
| Author | SHA1 | Date | |
|---|---|---|---|
| baad092f07 | |||
| 89a2cf6db1 |
@@ -36,15 +36,7 @@ namespace FictionArchive.Service.FileService.Controllers
|
||||
Key = decodedPath
|
||||
});
|
||||
|
||||
Response.Headers.CacheControl = "public, max-age=604800"; // 7 days
|
||||
Response.Headers.LastModified = s3Response.LastModified?.ToString("R");
|
||||
|
||||
if (!string.IsNullOrEmpty(s3Response.ETag))
|
||||
{
|
||||
Response.Headers.ETag = s3Response.ETag;
|
||||
}
|
||||
|
||||
return File(s3Response.ResponseStream, s3Response.Headers.ContentType);
|
||||
return new FileStreamResult(s3Response.ResponseStream, s3Response.Headers.ContentType);
|
||||
}
|
||||
catch (AmazonS3Exception e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user