* Make local temp path configurable * Generate entity tag based on file content hash instead of modified date
17 lines
479 B
C#
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();
|
|
} |