Skip to content

Pact Web Extensions ApplicationBuilderExtensions UseStaticFilesWithMaxAge(Microsoft AspNetCore Builder IApplicationBuilder System TimeSpan)

welshronaldo edited this page May 30, 2022 · 5 revisions

ApplicationBuilderExtensions.UseStaticFilesWithMaxAge(IApplicationBuilder, TimeSpan) Method

Convenience extension for Static Files with the Max Age Cache Control header set

public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseStaticFilesWithMaxAge(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, System.TimeSpan timeSpan);

Parameters

app Microsoft.AspNetCore.Builder.IApplicationBuilder
The application builder

timeSpan System.TimeSpan
TimeSpan to set the Max Age with

Returns

Microsoft.AspNetCore.Builder.IApplicationBuilder
The application builder for fluent usage

Clone this wiki locally