Export (0) Print
Expand All
Expand Minimize

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)

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.
Show:
© 2014 Microsoft