主权项 |
1. A method for generating a substitute uniform resource locator, the method comprising:
receiving, at a server comprising a processor, from a client device, a request to retrieve a web page at a uniform resource locator corresponding to a tree structure of a web site; responsive to receiving the request and the uniform resource locator being greater than a defined threshold value of characters in length, automatically generating, by the processor without intervention from the client device, the substitute uniform resource locator for the web page; sending, by the processor to the client device, the web page and the substitute uniform resource locator causing the substitute uniform resource locator to be displayed within a location bar of a client web browser rendering the web page, wherein the substitute uniform resource locator is reused in response to a subsequent request to retrieve the web page at the uniform resource locator corresponding to the tree structure of the web site; determining, by the server, a total number of substitute uniform resource locators in use in association with the web site; determining, by the server, that the total number of substitute uniform resource locators in use in association with the web site exceeds a limit; and in response to determining that the total number of substitute uniform resource locators in use in association with the web site exceeds the limit,
determining, by the server, a portion of the total number of substitute uniform resource locators to delete based on an amount of use associated with each of the total number of substitute uniform resource locators, anddeleting, by the server, the portion of the total number of substitute uniform resource locators. |