다음을 통해 공유


SPUtility.MakeBrowserCacheSafeScriptResourceUrl Method

Generates a new URL that is safe for the browser to use to cache the resource content. If the resource content was changed on the server, the URL that this method retrieves is changed to ensure that the stale browser cache is not used.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Shared Function MakeBrowserCacheSafeScriptResourceUrl ( _
    resxName As String _
) As String
'Usage
Dim resxName As String
Dim returnValue As String

returnValue = SPUtility.MakeBrowserCacheSafeScriptResourceUrl(resxName)
public static string MakeBrowserCacheSafeScriptResourceUrl(
    string resxName
)

Parameters

  • resxName
    Type: System.String

    The name of the .resx file relative to the resources directory.

Return Value

Type: System.String
A string that contains the URL location of the /_layouts/ScriptResx.ashx file. This file retrieves resources that are localized in the CurrentUICulture and LanguageCulture files associated with the SharePoint Web site.

See Also

Reference

SPUtility Class

SPUtility Members

Microsoft.SharePoint.Utilities Namespace