Page caching method and device, electronic equipment and computer readable storage medium

The embodiment of the invention provides a page caching method and device, electronic equipment and a computer readable storage medium, and the method comprises the steps that a real-time caching component is obtained, and the real-time caching component comprises a KeepAliveProvider component and a...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: HUANG YUN, FENG ERYING, CHENG XUZHAO
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The embodiment of the invention provides a page caching method and device, electronic equipment and a computer readable storage medium, and the method comprises the steps that a real-time caching component is obtained, and the real-time caching component comprises a KeepAliveProvider component and a WithKeepAlive component; the method comprises the following steps: determining a page to be cached through a KeepAliveProvider component, and rendering the page to be cached to obtain a first real dom; whether the page to be cached is cached or not is judged through the WithKeepAlive component; if the first real dom is cached, acquiring and caching the first real dom; and if the page to be cached is not cached, the page to be cached is rendered through the KeepAliveProvider component to obtain the second real dom, and the second real dom is cached, so that the capability of reserving a complex state of the page can be improved, the consumption of a browser memory is reduced, and the use performance of the browser