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)

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