EP1480131A2

Post-cache substitution of blocks in cached content

Abstract

Systems and methods for post-cache substitution. To include dynamic content in a response to a client request, a substitution block is inserted in the cached content. When the cached content is written as the response to the client, a delegate associated with the substitution block is invoked to generate the dynamic content. Each time the content is requested the delegate is invoked and the content served in the response to the client request includes dynamic content that could be different from one client request to the next client request for the cached content.

EP1480131A2, drawing sheet 1
Sheet 1 of 7

Term

Term ended

Projected expiry passed 6 May 2024, 2.4 years ago.

  1. Priority
  2. Filed
  3. Published
  4. Projected expiry
  5. Today

29 claims: 4 independent, 25 dependent

  1. 1
    In a system that has a server that serves content in response to client requests from a cache of the content, a method for inserting dynamic content in the cached content when the cached content is served to a client, the method comprising:receiving a request from a client for content;retrieving a chain of response buffers that includes a substitution block with a delegate from a cache, wherein the chain of response buffers corresponds to the content requested by the client;and invoking the delegate associated with the substitution block that generates dynamic content that is included in the chain of response buffers served in a response to the client request.
  2. 8
    In a system that includes a server that serves content to one or more clients from a cache, a method for caching content such that the cached content includes dynamic content that changes for each client request when the cached content is served to a client in response to a client request, the method comprising:adding a substitution block to a response that is being cached, wherein the substitution block retains a delegate that generates dynamic content;and storing the response in a cache such that the delegate retained by the substitution block is invoked to produce new dynamic content to be inserted in the response when the response is served from the cache in future client requests.
  3. 17
    In a system that includes a server that serves web pages to one or more clients from a cache in response to requests for the web pages from the one or more clients, a method for fully caching a web page such that the web page includes dynamic content when served from the cache, the method comprising:receiving a request from a client for a web page at a server;determining if the web page requested by the client is fully cached in a cache of the server;retrieving a chain of response buffers that corresponds to the web page requested by-the client from the cache, wherein the chain of response buffers includes one or more response buffers and a substitution block;writing each response buffer in the chain of response buffers to a response served to the client;when writing the substitution block, invoking a delegate associated with the substitution block to produce dynamic content for the web page that is included in the response to the client in place of the substitution block.
  4. 25
    In a system that includes a server that serves content to one or more clients from a cache in response to requests for the content from the one or more clients, a computer program product for implementing a method for fully caching content such that the web page includes dynamic content when served from the cache, the computer program product comprising:a computer readable medium having computer executable instructions for performing the method, the method comprising: receiving a request from a client for a web page at a server;determining if the web page requested by the client is cached in a cache of the server;retrieving a chain of response buffers that corresponds to the web page requested by the client from the cache, wherein the chain of response buffers includes one or more response buffers and a substitution block;writing each response buffer in the chain of response buffers to a response served to the client;when writing the substitution block, invoking a delegate associated to produce dynamic content for the web page that is included in the response to the client.