Browser Local Storage Expansion via Sub-Domain Iframes
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current browsers have limited local storage capacity per domain name, which restricts the ability to store large amounts of data, particularly for offline Web applications, as they can only allocate a maximum of 5 MB per domain name, failing to meet the demands of applications requiring more extensive data storage.
Innovation Solution
The method involves utilizing a generic domain name that supports an unlimited number of sub-domain names, allowing the creation of additional storage spaces by loading proxy pages within HTML frames (iframes) under these sub-domain names, thereby expanding the local storage capacity dynamically according to the data storage needs.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Quantity of substance
If data is stored in a local storage space under a domain name, then data can be cached for offline access, but the storage capacity is limited to a fixed size (e.g., 5 MB)
Solution Approach 1:
The patent segments the storage system by creating multiple iframe elements, each loading a proxy page under a different sub-domain name. This divides the single domain storage limit into multiple sub-domain storage spaces, effectively increasing total storage capacity while maintaining browser compatibility
Solution Approach 2:
The patent makes the storage system multi-functional by enabling dynamic creation of iframes with proxy pages under generic domain names. This universal approach allows the system to adapt to varying storage needs by programmatically creating additional storage spaces through HTML frame elements, rather than being restricted to a fixed domain-based storage allocation
2Quantity of substance
If the storage space under a domain name is increased, then more data can be stored, but it affects other domains that share the same browser storage quota
Solution Approach 1:
The patent isolates storage for different domains by creating separate iframe elements for each sub-domain. This segmentation ensures that storage operations in one iframe do not interfere with other domains, as each iframe maintains its own storage context under its specific sub-domain name
Solution Approach 2:
The patent introduces proxy pages as intermediary elements between the main application and browser storage. These proxy pages, loaded in iframes under sub-domain names, act as mediators that handle storage operations independently, simplifying storage management by abstracting the complexity of multi-domain storage coordination
3Quantity of substance
If multiple iframes are created to expand storage, then storage capacity increases, but device complexity increases
Solution Approach 1:
The patent implements a nested structure where iframe elements are embedded within the main page document. Each iframe contains a proxy page that further nests the storage functionality. This nested doll approach allows multiple storage spaces to be organized hierarchically under a single domain, increasing storage capacity while maintaining a clean, organized system structure
Solution Approach 2:
The patent creates a universal iframe template that can be dynamically instantiated multiple times. Each iframe follows the same structure with a proxy page under a sub-domain, allowing the system to expand storage capacity through repetition of a standardized component rather than creating complex custom structures for each storage space
Data Source
AI summary
The present disclosure provides a data storage method and device, wherein the method comprises: invoking a local storage interface of a browser, and storing application data to a storage space under a domain name corresponding to a current page, the domain name supporting a generic domain name; when the storage space under the domain name is insufficient to store the application data, creating at least one iframe, each iframe loading a proxy page corresponding to a sub-domain name under the domain name; and storing remaining application data in an additional storage space corresponding to the at least one sub-domain name. The method allows the local storage of a browser to meet the data storage demand of various capacities.

