View Source
Class SmidgeRequestHelper
Inheritance
System.Object
Assembly: Umbraco.Web.Common.dll
Syntax
public class SmidgeRequestHelper : IRequestHelper
Constructors
View Source
SmidgeRequestHelper(IWebsiteInfo)
Declaration
public SmidgeRequestHelper(IWebsiteInfo siteInfo)
Parameters
Type |
Name |
Description |
IWebsiteInfo |
siteInfo |
|
Methods
View Source
Content(IWebFile)
Declaration
public string Content(IWebFile file)
Parameters
Type |
Name |
Description |
IWebFile |
file |
|
Returns
Type |
Description |
System.String |
|
View Source
Content(String)
Declaration
public string Content(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.String |
|
View Source
GetClientCompression(IDictionary<String, StringValues>)
Overrides the default order of compression from Smidge, since Brotli is super slow (~10 seconds for backoffice.js)
Declaration
public CompressionType GetClientCompression(IDictionary<string, StringValues> headers)
Parameters
Type |
Name |
Description |
IDictionary<System.String, Microsoft.Extensions.Primitives.StringValues> |
headers |
|
Returns
Type |
Description |
CompressionType |
|
View Source
IsExternalRequestPath(String)
Declaration
public bool IsExternalRequestPath(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.Boolean |
|