elsa-core/src/modules/Elsa.Http/Options/HttpFileCacheOptions.cs
Sipke Schoorstra e7ca310eac
HTTP File Response Improvements (#4465)
* Make local temp path configurable

* Generate entity tag based on file content hash instead of modified date
2023-09-21 19:42:41 +02:00

17 lines
479 B
C#

namespace Elsa.Http.Options;
/// <summary>
/// Provides options for the HTTP file cache.
/// </summary>
public class HttpFileCacheOptions
{
/// <summary>
/// The time to live for cached files.
/// </summary>
public TimeSpan TimeToLive { get; set; } = TimeSpan.FromDays(7);
/// <summary>
/// The local cache directory. Defaults to the system's temp directory.
/// </summary>
public string LocalCacheDirectory { get; set; } = Path.GetTempPath();
}