Patent attributes
To reduce the amount of data sent to a device to generate a webpage, a requesting device provides an indication of locally stored templates. Multiple webpages may use similar code represented by a single template. If the requested webpage is associated with a stored template, a response provided to the device includes an indication of the template and webpage code that corresponds to portions of the webpage not included in the template. The requesting device then generates a first portion of the webpage using code in the template and a second portion using the received webpage code. If the requested webpage is associated with a template not indicated in the request, both the template and code that corresponds to the second portion of the webpage are sent. The requesting device then stores the template for future use when accessing the same or a similar webpage associated with the same template.