Search Results for

    Show / Hide Table of Contents
    View Source

    Class SmidgeRequestHelper

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Web.Common.RuntimeMinification
    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
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • SmidgeRequestHelper(IWebsiteInfo)
    • Methods
      • Content(IWebFile)
      • Content(String)
      • GetClientCompression(IDictionary<String, StringValues>)
      • IsExternalRequestPath(String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX