Browse Source

fcl-base: TServiceWorkerApplication: comments

mattias 3 years ago
parent
commit
b3319c4d4a
2 changed files with 6 additions and 1 deletions
  1. 2 1
      demo/pwa/ServiceWorker.lpr
  2. 4 0
      packages/fcl-base/serviceworkerapp.pas

+ 2 - 1
demo/pwa/ServiceWorker.lpr

@@ -6,7 +6,8 @@ uses
   Classes, ServiceWorkerApp;
   Classes, ServiceWorkerApp;
 
 
 const
 const
-  YourCacheName = 'v6';
+  YourCacheName = 'v6'; // usually increased with every version
+   // The cache is specific to your domain, so no need to include your app name.
 
 
 type
 type
 
 

+ 4 - 0
packages/fcl-base/serviceworkerapp.pas

@@ -1,3 +1,7 @@
+{
+  A service worker functions like a proxy server, allowing to modify requests
+  and responses, and replace them with items from its own cache, and more.
+}
 unit ServiceWorkerApp;
 unit ServiceWorkerApp;
 
 
 {$mode objfpc}
 {$mode objfpc}