-
Notifications
You must be signed in to change notification settings - Fork 8
Service Worker–Based Persistent Prefetch Cache #2
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentationduplicateThis issue or pull request already existsThis issue or pull request already existsenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentationduplicateThis issue or pull request already existsThis issue or pull request already existsenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested
Summary
Introduce a service worker layer to persist GhostIO’s prefetched data beyond the in-memory cache. This allows cached API responses to survive page reloads, browser restarts, and offline usage.
Why
Scope (MVP)
Service Worker Integration
Persistent Cache Retrieval
When
ghost.get(url)is called:Configurable Cache Policy
persistPrefetch(default: false).cacheTTLoption: expiry time for persistent entries.maxPersistentSize: optional limit for storage size.Offline Support
Example Usage
Acceptance Criteria
registerAxiosintegration.Tasks
persistPrefetchandcacheTTLconfig options.ghost.get(url)to check persistent cache.