awesome-repositories.com
Blog
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
GoogleChrome avatar

GoogleChrome/sw-precacheArchived

0
View on GitHub↗
5,189 stars·381 forks·JavaScript·Apache-2.0·4 vuesdevelopers.google.com/web/tools/workbox/guides/migrations/migrate-from-sw↗

Sw Precache

sw-precache est un générateur de pré-mise en cache de service worker utilisé pour créer des scripts qui permettent la fonctionnalité hors ligne pour les applications web. Il agit comme un gestionnaire de cache d'assets au moment du build qui hache les fichiers statiques et gère leur versionnage au sein d'un cache de service worker.

Le projet fournit un configurateur de cache au moment de l'exécution pour définir des stratégies de mise en cache et des gestionnaires de requêtes pour le contenu dynamique basé sur des modèles d'URL. Il inclut également un gestionnaire de repli hors ligne pour intercepter les échecs réseau et servir des pages de repli mises en cache.

L'ensemble d'outils couvre la génération de code et de manifestes de service worker, le versionnage basé sur le hachage de contenu et l'interception des événements de fetch. Il fournit une interface en ligne de commande pour générer des fichiers de service worker en utilisant des fichiers de configuration et des drapeaux personnalisés.

Features

  • Offline Web Applications - Enables web applications to function without an internet connection through static asset precaching and fallback pages.
  • Web Asset Caches - Manages a build-time cache of static web assets using content hashes for efficient versioning in service workers.
  • Service Worker Manifests - Generates the static asset lists and version manifests required for service worker precaching during the build process.
  • Progressive Web Apps - Implements core PWA capabilities by caching essential files during the build process for improved reliability and load times.
  • Build Artifact Content Hashes - Uses content hashing of static assets to generate deterministic cache keys for versioning and updates.
  • Fetch Event Interceptors - Intercepts browser fetch events to implement custom caching and routing logic for network requests.
  • Service Worker Script Generators - Transforms JavaScript or JSON configuration into a functional service worker script via a build-step module.
  • Service Worker Generators - Provides a command line interface to automate the generation of service worker files and manifests.
  • Service Worker Precaching - Generates service worker scripts that automatically download and version static assets for offline use.
  • Route Pattern Matching - Matches request URLs against regular expressions to apply specific caching strategies for dynamic content.
  • Offline Fallback Content - Intercepts failed network requests for HTML pages and returns cached fallback content to maintain availability.
  • Offline Fallback Pages - Intercepts network failures to serve cached fallback pages, ensuring application availability without connectivity.
  • Caching Strategy Handlers - Defines reusable caching strategies that determine how to resolve dynamic requests between the cache and the network.
  • Fallback Response Handlers - Serves custom fallback responses and pages when requested resources are missing or unavailable offline.
  • Offline Web Caching - Provides strategies for caching dynamic network requests based on URL patterns to reduce server load.
  • Development Libraries - Automates the generation of service workers for static asset caching.
  • Service Worker Libraries - Generates service worker code for precaching static assets.

Historique des stars

Graphique de l'historique des stars pour googlechrome/sw-precacheGraphique de l'historique des stars pour googlechrome/sw-precache

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Alternatives open source à Sw Precache

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Sw Precache.
  • googlechromelabs/sw-precacheAvatar de GoogleChromeLabs

    GoogleChromeLabs/sw-precache

    5,190Voir sur GitHub↗

    sw-precache is a service worker build tool and precaching generator that produces JavaScript code to version and store static assets. It functions as a command-line interface and node module designed to enable offline functionality and improve load times for web applications. The project distinguishes itself by combining build-time asset discovery with a runtime caching orchestrator. It uses content-hash-based versioning to trigger updates only when file contents change and employs template-based code generation to inject custom routing rules and handler libraries into the resulting service w

    JavaScriptjavascriptofflineoffline-first
    Voir sur GitHub↗5,190
  • googlechrome/workboxAvatar de GoogleChrome

    GoogleChrome/workbox

    12,895Voir sur GitHub↗

    Workbox is a modular library and toolkit designed for managing service workers in progressive web applications. It provides a comprehensive framework for handling asset caching, request routing, and background script lifecycle management, enabling developers to build web applications that function reliably offline and load efficiently. The project distinguishes itself through a declarative routing engine and a plugin-based architecture that allows for the injection of custom logic into the request and response processing pipeline. It supports advanced caching patterns, such as cache-first or

    JavaScriptoffline-firstprogressive-web-appservice-worker
    Voir sur GitHub↗12,895
  • talater/upupAvatar de TalAter

    TalAter/UpUp

    4,920Voir sur GitHub↗

    UpUp is a service worker framework and progressive web app tool designed to provide websites with offline capabilities. It functions as a browser cache manager that enables offline website availability by utilizing service workers and the cache API. The project manages the offline workflow through static asset pre-caching and version-based cache busting to ensure stored resources remain current. It also includes offline fallback management to define specific pages or content that display to users when a network connection is unavailable and the requested resource is not cached. Additional ca

    JavaScripthacktoberfestofflineoffline-first
    Voir sur GitHub↗4,920
  • vite-pwa/vite-plugin-pwaAvatar de vite-pwa

    vite-pwa/vite-plugin-pwa

    4,185Voir sur GitHub↗

    This is a build tool for adding progressive web app capabilities to Vite projects. It automates the generation of web app manifests and service workers, enabling websites to become installable on mobile and desktop devices. The project provides a specialized asset pipeline that generates a complete set of required application icons and theme colors from a single source image. It also manages the service worker lifecycle, offering both automatic generation and the ability to compile custom service worker files with an integrated precache manifest. The plugin covers broad capability areas incl

    TypeScriptpreactpwareact
    Voir sur GitHub↗4,185
Voir les 30 alternatives à Sw Precache→

Questions fréquentes

Que fait googlechrome/sw-precache ?

sw-precache est un générateur de pré-mise en cache de service worker utilisé pour créer des scripts qui permettent la fonctionnalité hors ligne pour les applications web. Il agit comme un gestionnaire de cache d'assets au moment du build qui hache les fichiers statiques et gère leur versionnage au sein d'un cache de service worker.

Quelles sont les fonctionnalités principales de googlechrome/sw-precache ?

Les fonctionnalités principales de googlechrome/sw-precache sont : Offline Web Applications, Web Asset Caches, Service Worker Manifests, Progressive Web Apps, Build Artifact Content Hashes, Fetch Event Interceptors, Service Worker Script Generators, Service Worker Generators.

Quelles sont les alternatives open-source à googlechrome/sw-precache ?

Les alternatives open-source à googlechrome/sw-precache incluent : googlechromelabs/sw-precache — sw-precache is a service worker build tool and precaching generator that produces JavaScript code to version and store… googlechrome/workbox — Workbox is a modular library and toolkit designed for managing service workers in progressive web applications. It… talater/upup — UpUp is a service worker framework and progressive web app tool designed to provide websites with offline… vite-pwa/vite-plugin-pwa — This is a build tool for adding progressive web app capabilities to Vite projects. It automates the generation of web… shadowwalker/next-pwa — next-pwa is a plugin for adding progressive web app capabilities and offline support to Next.js applications. It… nekr/offline-plugin — This project is a webpack plugin that implements a service worker to manage web assets for offline access. It serves…