IBlazorWebView.StaticContentCacheControlProvider Property

Definition

Gets a callback that returns the Cache-Control header value to use for a static content request served by the BlazorWebView, or null to use the default (which disables caching). Returning null or an empty string from the callback for a given request also falls back to the default for that request. The callback may be invoked on a background thread, so it must not access UI state directly. If the callback throws, the exception is logged and the request falls back to the default header. Cache entries remain subject to platform limits, expiration, and eviction.

public:
 virtual property Func<Microsoft::AspNetCore::Components::WebView::Maui::BlazorWebViewStaticContentRequest ^, System::String ^> ^ StaticContentCacheControlProvider { Func<Microsoft::AspNetCore::Components::WebView::Maui::BlazorWebViewStaticContentRequest ^, System::String ^> ^ get(); };
public virtual Func<Microsoft.AspNetCore.Components.WebView.Maui.BlazorWebViewStaticContentRequest,string?>? StaticContentCacheControlProvider { get; }
member this.StaticContentCacheControlProvider : Func<Microsoft.AspNetCore.Components.WebView.Maui.BlazorWebViewStaticContentRequest, string>
Public Overridable ReadOnly Property StaticContentCacheControlProvider As Func(Of BlazorWebViewStaticContentRequest, String)

Property Value

Applies to