包详细信息

gatsby-plugin-offline

gatsbyjs201.6kMIT6.15.0

Gatsby plugin which sets up a site to be able to run offline

gatsby, gatsby-plugin, offline, precache

自述文件

gatsby-plugin-offline

Adds drop-in support for making a Gatsby site work offline and more resistant to bad network connections. It uses Workbox Build to create a service worker for the site and loads the service worker into the client.

If you're using this plugin with gatsby-plugin-manifest (recommended) this plugin should be listed after that plugin so the manifest file can be included in the service worker.

Install

npm install gatsby-plugin-offline

How to use

// In your gatsby-config.js
plugins: [`gatsby-plugin-offline`]

Available options

In gatsby-plugin-offline 3.x, the following options are available:

  • precachePages lets you specify pages whose resources should be precached by the service worker, using an array of globs. For example:

    plugins: [
      {
        resolve: `gatsby-plugin-offline`,
        options: {
          precachePages: [`/about-us/`, `/projects/*`],
        },
      },
    ]
    

    Note: while essential resources of specified pages will be precached, such as JavaScript and CSS, non-essential resources such as fonts and images will not be included. Instead, these will be cached at runtime when a user visits a given page that includes these resources.

  • appendScript lets you specify a file to be appended at the end of the generated service worker (sw.js). For example:

    plugins: [
      {
        resolve: `gatsby-plugin-offline`,
        options: {
          appendScript: require.resolve(`src/custom-sw-code.js`),
        },
      },
    ]
    


    // show a notification after 15 seconds (the notification
    // permission must be granted first)
    setTimeout(() => {
      self.registration.showNotification("Hello, world!")
    }, 15000)
    
    // register a custom navigation route
    const customRoute = new workbox.routing.NavigationRoute(({ event }) => {
      // ...
    })
    workbox.routing.registerRoute(customRoute)
    
  • debug specifies whether Workbox should show debugging output in the browser console at runtime. When undefined, defaults to showing debug messages on localhost only.

  • workboxConfig allows you to override the default Workbox options - see Overriding Workbox configuration. For example:

    plugins: [
      {
        resolve: `gatsby-plugin-offline`,
        options: {
          workboxConfig: {
            importWorkboxFrom: `cdn`,
          },
        },
      },
    ]
    

Upgrading from 2.x

To upgrade from 2.x to 3.x, move any existing options into the workboxConfig option. If you haven't specified any options, you have nothing to do.

For example, here is a 2.x config:

plugins: [
  {
    resolve: `gatsby-plugin-offline`,
    options: {
      importWorkboxFrom: `cdn`,
    },
  },
]

Here is the equivalent 3.x config:

plugins: [
  {
    resolve: `gatsby-plugin-offline`,
    options: {
      workboxConfig: {
        importWorkboxFrom: `cdn`,
      },
    },
  },
]

In version 3, Workbox is also upgraded to version 4 so you may need to update your workboxConfig if any of those changes apply to you. Please see the docs on Google Developers for more information.

Overriding Workbox configuration

When adding this plugin to your gatsby-config.js, you can use the option workboxConfig to override the default Workbox config. To see the full list of options, see this article on Google Developers.

The default workboxConfig is as follows. Note that some of these options are configured automatically, e.g. globPatterns. If you're not sure about what all of these options mean, it's best to leave them as-is - otherwise, you may end up causing errors on your site, causing old files to be remain cached, or even breaking offline support.

const options = {
  importWorkboxFrom: `local`,
  globDirectory: rootDir,
  globPatterns,
  modifyURLPrefix: {
    // If `pathPrefix` is configured by user, we should replace
    // the default prefix with `pathPrefix`.
    "/": `${pathPrefix}/`,
  },
  cacheId: `gatsby-plugin-offline`,
  // Don't cache-bust JS or CSS files, and anything in the static directory,
  // since these files have unique URLs and their contents will never change
  dontCacheBustURLsMatching: /(\.js$|\.css$|static\/)/,
  runtimeCaching: [
    {
      // Use cacheFirst since these don't need to be revalidated (same RegExp
      // and same reason as above)
      urlPattern: /(\.js$|\.css$|static\/)/,
      handler: `CacheFirst`,
    },
    {
      // page-data.json files, static query results and app-data.json
      // are not content hashed
      urlPattern: /^https?:.*\/page-data\/.*\.json/,
      handler: `StaleWhileRevalidate`,
    },
    {
      // Add runtime caching of various other page resources
      urlPattern:
        /^https?:.*\.(png|jpg|jpeg|webp|svg|gif|tiff|js|woff|woff2|json|css)$/,
      handler: `StaleWhileRevalidate`,
    },
    {
      // Google Fonts CSS (doesn't end in .css so we need to specify it)
      urlPattern: /^https?:\/\/fonts\.googleapis\.com\/css/,
      handler: `StaleWhileRevalidate`,
    },
  ],
  skipWaiting: true,
  clientsClaim: true,
}

Remove

If you want to remove gatsby-plugin-offline from your site at a later point, substitute it with gatsby-plugin-remove-serviceworker to safely remove the service worker. First, install the new package:

npm install gatsby-plugin-remove-serviceworker
npm uninstall gatsby-plugin-offline

Then, update your gatsby-config.js:

 plugins: [
-  `gatsby-plugin-offline`,
+  `gatsby-plugin-remove-serviceworker`,
 ]

This will ensure that the worker is properly unregistered, instead of leaving an outdated version registered in users' browsers.

Notes

Empty View Source and SEO

Gatsby offers great SEO capabilities and that is no different with gatsby-plugin-offline. However, you shouldn't think that Gatsby doesn't serve HTML tags anymore when looking at your source code in the browser (with Right click => View source). View source doesn't represent the actual HTML data since gatsby-plugin-offline registers and loads a service worker that will cache and handle this differently. Your site is loaded from the service worker, not from its actual source (check your Network tab in the DevTools for that).

To see the HTML data that crawlers will receive, run this in your terminal:

on Windows (using powershell):

Invoke-WebRequest https://www.yourdomain.tld | Select -ExpandProperty Content

on Mac OS/Linux:

curl https://www.yourdomain.tld

Alternatively you can have a look at the /public/index.html file in your project folder.

App shell and server logs

Server logs (like from Netlify analytics) may show a large number of pageviews to a route like /offline-plugin-app-shell-fallback/index.html, this is a result of gatsby-plugin-offline adding an app shell to the page. The app shell is a minimal amount of user interface that can be cached offline for reliable performance loading on repeat visits. The shell can be loaded from the cache, and the content of the site loaded into the shell by the service worker.

Using with gatsby-plugin-manifest

If using this plugin with gatsby-plugin-manifest you may find that your icons are not cached. In order to solve this, update your gatsby-config.js as follows:

// gatsby-config.js
{
   resolve: 'gatsby-plugin-manifest',
   options: {
      icon: 'icon.svg',
      cache_busting_mode: 'none'
   }
},
{
   resolve: 'gatsby-plugin-offline',
   options: {
      workboxConfig: {
         globPatterns: ['**/icon-path*']
      }
   }
}

Updating cache_busting_mode is necessary. Otherwise, workbox will break while attempting to find the cached URLs. Adding the globPatterns makes sure that the offline plugin will cache everything. Note that you have to prefix your icon with icon-path or whatever you may call it

更新日志

Changelog: gatsby-plugin-offline

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

6.14.0 (2024-11-06)

🧾 Release notes

Bug Fixes

6.13.3 (2024-08-26)

Bug Fixes

6.13.2 (2024-04-10)

Bug Fixes

6.13.1 (2024-01-23)

Note: Version bump only for package gatsby-plugin-offline

6.13.0 (2023-12-18)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

6.12.3 (2023-10-26)

Note: Version bump only for package gatsby-plugin-offline

6.12.2 (2023-10-20)

Note: Version bump only for package gatsby-plugin-offline

6.12.1 (2023-10-09)

Note: Version bump only for package gatsby-plugin-offline

6.12.0 (2023-08-24)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

6.11.0 (2023-06-15)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

6.10.0 (2023-05-16)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

6.9.0 (2023-04-18)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

6.8.0 (2023-03-21)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

6.7.0 (2023-02-21)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

6.6.0 (2023-02-07)

🧾 Release notes

Bug Fixes

6.5.0 (2023-01-24)

🧾 Release notes

Chores

6.4.0 (2023-01-10)

🧾 Release notes

Chores

6.3.1 (2022-12-14)

Note: Version bump only for package gatsby-plugin-offline

6.3.0 (2022-12-13)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

6.2.0 (2022-11-25)

🧾 Release notes

Other Changes

6.1.0 (2022-11-22)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

6.0.0 (2022-11-08)

🧾 Release notes

Chores

5.24.0 (2022-09-27)

🧾 Release notes

Chores

5.23.1 (2022-09-22)

Note: Version bump only for package gatsby-plugin-offline

5.23.0 (2022-09-13)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

5.22.0 (2022-08-30)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

5.21.0 (2022-08-16)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

5.20.0 (2022-08-02)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

5.19.0 (2022-07-19)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

5.18.1 (2022-07-12)

Note: Version bump only for package gatsby-plugin-offline

5.18.0 (2022-07-05)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

5.17.0 (2022-06-21)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

5.16.0 (2022-06-07)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

5.15.1 (2022-06-01)

Note: Version bump only for package gatsby-plugin-offline

5.15.0 (2022-05-24)

🧾 Release notes

Chores

5.14.1 (2022-05-16)

Chores

5.14.0 (2022-05-10)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

5.13.0 (2022-04-26)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

5.12.1 (2022-04-13)

Note: Version bump only for package gatsby-plugin-offline

5.12.0 (2022-04-12)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

5.11.1 (2022-03-31)

Note: Version bump only for package gatsby-plugin-offline

5.11.0 (2022-03-29)

🧾 Release notes

Bug Fixes

Chores

  • replace all uses of gatsbyjs.org with gatsbyjs.com #35101 (16cff41)

5.10.2 (2022-03-23)

Note: Version bump only for package gatsby-plugin-offline

5.10.1 (2022-03-18)

Note: Version bump only for package gatsby-plugin-offline

5.10.0 (2022-03-16)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

5.9.1 (2022-03-09)

Note: Version bump only for package gatsby-plugin-offline

5.9.0 (2022-03-01)

🧾 Release notes

Chores

5.8.2 (2022-03-01)

Note: Version bump only for package gatsby-plugin-offline

5.8.1 (2022-02-25)

Note: Version bump only for package gatsby-plugin-offline

5.8.0 (2022-02-22)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

5.7.0 (2022-02-08)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

5.6.0 (2022-01-25)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

5.5.2 (2022-01-17)

Note: Version bump only for package gatsby-plugin-offline

5.5.1 (2022-01-12)

Note: Version bump only for package gatsby-plugin-offline

5.5.0 (2022-01-11)

🧾 Release notes

Bug Fixes

Chores

5.4.0 (2021-12-14)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

5.3.0 (2021-12-01)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

5.2.0 (2021-11-16)

🧾 Release notes

Bug Fixes

  • update dependency glob to ^7.2.0 for gatsby-plugin-offline #33761 (97eb351)

5.1.4 (2021-11-15)

Note: Version bump only for package gatsby-plugin-offline

5.1.3 (2021-11-11)

Note: Version bump only for package gatsby-plugin-offline

5.1.2 (2021-11-10)

Note: Version bump only for package gatsby-plugin-offline

5.1.1 (2021-11-09)

Note: Version bump only for package gatsby-plugin-offline

5.1.0 (2021-11-02)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

5.0.0 (2021-10-21)

🧾 Release notes

Chores

4.14.0 (2021-09-18)

🧾 Release notes

Bug Fixes

Chores

4.13.0 (2021-09-01)

🧾 Release notes

Chores

4.12.0 (2021-08-18)

🧾 Release notes

Bug Fixes

  • update dependency glob to ^7.1.7 for gatsby-plugin-offline #32601 (7ebe7cc)

Chores

4.11.0 (2021-08-04)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

4.10.0 (2021-07-20)

🧾 Release notes

Chores

4.9.0 (2021-07-07)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

4.8.0 (2021-06-23)

🧾 Release notes

Chores

4.7.1 (2021-06-10)

Chores

4.7.0 (2021-06-09)

🧾 Release notes

Chores

4.6.0 (2021-05-25)

🧾 Release notes

Bug Fixes

4.5.1 (2021-05-19)

Bug Fixes

4.5.0 (2021-05-12)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

4.4.0 (2021-04-28)

🧾 Release notes

Bug Fixes

4.3.0 (2021-04-14)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

4.2.0 (2021-03-30)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

4.1.0 (2021-03-16)

🧾 Release notes

Bug Fixes

Chores

4.0.0 (2021-03-02)

🧾 Release notes

Bug Fixes

Other Changes

  • Move peerdeps to 16.9.0 & 17+ for react & react-dom #29735 (6b86b99)

3.10.2 (2021-02-24)

Note: Version bump only for package gatsby-plugin-offline

3.10.1 (2021-02-18)

Bug Fixes

3.10.0 (2021-02-02)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

3.9.0 (2021-01-20)

🧾 Release notes

Bug Fixes

  • update vulnerable packages, include React 17 in peerDeps #28545 (18b5f30)

3.8.0 (2021-01-06)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

3.7.1 (2020-12-23)

Note: Version bump only for package gatsby-plugin-offline

3.7.0 (2020-12-15)

🧾 Release notes

Chores

3.6.0 (2020-12-02)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-offline

3.5.0 (2020-11-20)

🧾 Release notes

Chores

3.4.0 (2020-11-12)

🧾 Release notes

Bug Fixes

  • add workboxConfig.maximumFileSizeToCacheInBytes to options schema #27913 (e4fd0ad)

3.3.1 (2020-11-03)

Note: Version bump only for package gatsby-plugin-offline

3.3.0 (2020-11-02)

Features

3.2.38 (2020-10-28)

Note: Version bump only for package gatsby-plugin-offline

3.2.37 (2020-10-22)

Note: Version bump only for package gatsby-plugin-offline

3.2.36 (2020-10-21)

Bug Fixes

  • Update plugin schema testing util and associated tests (#27574) (6d81283)

3.2.35 (2020-10-20)

Note: Version bump only for package gatsby-plugin-offline

3.2.34 (2020-10-19)

Note: Version bump only for package gatsby-plugin-offline

3.2.33 (2020-10-16)

Note: Version bump only for package gatsby-plugin-offline

3.2.32 (2020-10-15)

Note: Version bump only for package gatsby-plugin-offline

3.2.31 (2020-10-06)

Note: Version bump only for package gatsby-plugin-offline

3.2.30 (2020-10-01)

Note: Version bump only for package gatsby-plugin-offline

3.2.29 (2020-09-28)

Note: Version bump only for package gatsby-plugin-offline

3.2.28 (2020-09-15)

Note: Version bump only for package gatsby-plugin-offline

3.2.27 (2020-09-07)

Note: Version bump only for package gatsby-plugin-offline

3.2.26 (2020-08-28)

Note: Version bump only for package gatsby-plugin-offline

3.2.25 (2020-08-26)

Note: Version bump only for package gatsby-plugin-offline

3.2.24 (2020-08-24)

Note: Version bump only for package gatsby-plugin-offline

3.2.23 (2020-08-10)

Bug Fixes

  • gatsby-plugin-offline: Update regex to catch new static query results (#26329) (75ab9b8)

3.2.22 (2020-08-05)

Note: Version bump only for package gatsby-plugin-offline

3.2.21 (2020-07-24)

Note: Version bump only for package gatsby-plugin-offline

3.2.20 (2020-07-21)

Note: Version bump only for package gatsby-plugin-offline

3.2.19 (2020-07-20)

Note: Version bump only for package gatsby-plugin-offline

3.2.18 (2020-07-15)

Note: Version bump only for package gatsby-plugin-offline

3.2.17 (2020-07-09)

Note: Version bump only for package gatsby-plugin-offline

3.2.16 (2020-07-02)

Note: Version bump only for package gatsby-plugin-offline

3.2.15 (2020-07-01)

Note: Version bump only for package gatsby-plugin-offline

3.2.14 (2020-07-01)

Note: Version bump only for package gatsby-plugin-offline

3.2.13 (2020-06-24)

Note: Version bump only for package gatsby-plugin-offline

3.2.12 (2020-06-22)

Bug Fixes

  • docs: change bash to shell in code language blocks (#22899) (6b6b2f2)

3.2.11 (2020-06-19)

Bug Fixes

3.2.10 (2020-06-15)

Note: Version bump only for package gatsby-plugin-offline

3.2.9 (2020-06-09)

Note: Version bump only for package gatsby-plugin-offline

3.2.8 (2020-06-02)

Note: Version bump only for package gatsby-plugin-offline

3.2.7 (2020-05-22)

Note: Version bump only for package gatsby-plugin-offline

3.2.6 (2020-05-20)

Note: Version bump only for package gatsby-plugin-offline

3.2.5 (2020-05-20)

Note: Version bump only for package gatsby-plugin-offline

3.2.4 (2020-05-19)

Note: Version bump only for package gatsby-plugin-offline

3.2.3 (2020-05-18)

Note: Version bump only for package gatsby-plugin-offline

3.2.2 (2020-05-13)

Note: Version bump only for package gatsby-plugin-offline

3.2.1 (2020-05-05)

Note: Version bump only for package gatsby-plugin-offline

3.2.0 (2020-04-27)

Note: Version bump only for package gatsby-plugin-offline

3.1.5 (2020-04-24)

Note: Version bump only for package gatsby-plugin-offline

3.1.4 (2020-04-17)

Bug Fixes

3.1.3 (2020-04-16)

Note: Version bump only for package gatsby-plugin-offline

3.1.2 (2020-03-26)

Note: Version bump only for package gatsby-plugin-offline

3.1.1 (2020-03-23)

Note: Version bump only for package gatsby-plugin-offline

3.1.0 (2020-03-20)

Features

3.0.42 (2020-03-18)

Bug Fixes

  • gatsby-plugin-offline: Run app-shell.js from user cache directory for pnp compatibility (#22351) (f8b7317)

3.0.41 (2020-03-16)

Note: Version bump only for package gatsby-plugin-offline

3.0.40 (2020-03-11)

Note: Version bump only for package gatsby-plugin-offline

3.0.39 (2020-03-10)

Note: Version bump only for package gatsby-plugin-offline

3.0.38 (2020-03-09)

Note: Version bump only for package gatsby-plugin-offline

3.0.37 (2020-03-06)

Note: Version bump only for package gatsby-plugin-offline

3.0.36 (2020-03-06)

Note: Version bump only for package gatsby-plugin-offline

3.0.35 (2020-02-17)

Note: Version bump only for package gatsby-plugin-offline

3.0.34 (2020-02-01)

Note: Version bump only for package gatsby-plugin-offline

3.0.33 (2020-01-29)

Note: Version bump only for package gatsby-plugin-offline

3.0.32 (2020-01-15)

Note: Version bump only for package gatsby-plugin-offline

3.0.31 (2020-01-09)

Note: Version bump only for package gatsby-plugin-offline

3.0.30 (2019-12-20)

Note: Version bump only for package gatsby-plugin-offline

3.0.29 (2019-12-10)

Note: Version bump only for package gatsby-plugin-offline

3.0.28 (2019-12-10)

Note: Version bump only for package gatsby-plugin-offline

3.0.27 (2019-12-05)

Bug Fixes

  • gatsby-plugin-offline: Replaced cacheOnly with cacheFirst (#19926) (7e842df)

3.0.26 (2019-12-02)

Note: Version bump only for package gatsby-plugin-offline

3.0.25 (2019-11-28)

Bug Fixes

  • gatsby-plugin-offline: Update incorrect casing for runtimeCachin… (#19817) (b44aca0)

3.0.24 (2019-11-26)

Note: Version bump only for package gatsby-plugin-offline

3.0.23 (2019-11-25)

Note: Version bump only for package gatsby-plugin-offline

3.0.22 (2019-11-18)

Bug Fixes

  • gatsby: Handle special characters in windows paths (#19600) (9929cf0)

3.0.21 (2019-11-15)

Note: Version bump only for package gatsby-plugin-offline

3.0.20 (2019-11-13)

Features

  • gatsby-plugin-offline: Merge workboxConfig and default o… (#19437) (8791329)

3.0.19 (2019-11-10)

Note: Version bump only for package gatsby-plugin-offline

3.0.18 (2019-11-04)

Bug Fixes

  • gatsby-plugin-offline: Improve reliability of JS detection (#18760) (ae6eab3)

3.0.17 (2019-10-28)

Bug Fixes

3.0.16 (2019-10-14)

Note: Version bump only for package gatsby-plugin-offline

3.0.15 (2019-10-14)

Note: Version bump only for package gatsby-plugin-offline

3.0.14 (2019-10-10)

Features

  • gatsby-plugin-offline: Allow configuring Workbox debug m… (#18123) (3c18b9f)

3.0.13 (2019-10-09)

Note: Version bump only for package gatsby-plugin-offline

3.0.12 (2019-10-08)

Note: Version bump only for package gatsby-plugin-offline

3.0.11 (2019-09-26)

Note: Version bump only for package gatsby-plugin-offline

3.0.10 (2019-09-26)

Note: Version bump only for package gatsby-plugin-offline

3.0.9 (2019-09-25)

Bug Fixes

  • gatsby-plugin-offline: skip prefetching all resources (#16691) (e688b0c)

3.0.8 (2019-09-20)

Features

  • gatsby-plugin-offline: "Magic" JS detection to make sites function correctly when JS is disabled retroactively (#17590) (e451815)

3.0.7 (2019-09-16)

Note: Version bump only for package gatsby-plugin-offline

3.0.6 (2019-09-09)

Bug Fixes

  • gatsby-plugin-offline: use base path instead of path prefix (#17446) (71437d6)

3.0.5 (2019-09-09)

Note: Version bump only for package gatsby-plugin-offline

3.0.4 (2019-09-09)

Bug Fixes

  • gatsby-plugin-offline: set path resources on route update to ensure initial page is cached (#17408) (556c4cf)

3.0.3 (2019-09-05)

Bug Fixes

  • gatsby-plugin-offline: prevent caching invalid relative paths (#17406) (19ee175)

3.0.2 (2019-09-04)

Features

  • gatsby-plugin-offline: Allow precaching custom pages (#16877) (12b5f75)

3.0.1 (2019-09-01)

Bug Fixes

  • update minor updates in packages except react, babel and eslint (#17254) (252d867)

3.0.0 (2019-08-30)

Features

  • gatsby-plugin-offline: Allow appending custom scripts (#11626) (275344e)

2.2.10 (2019-08-23)

Note: Version bump only for package gatsby-plugin-offline

2.2.9 (2019-08-22)

Note: Version bump only for package gatsby-plugin-offline

2.2.8 (2019-08-21)

Bug Fixes

2.2.7 (2019-08-20)

Note: Version bump only for package gatsby-plugin-offline

2.2.6 (2019-08-13)

Note: Version bump only for package gatsby-plugin-offline

2.2.5 (2019-08-08)

Bug Fixes

  • gatsby-plugin-offline: Change navigation handler logic (#13502) (504b077)

2.2.4 (2019-07-13)

Note: Version bump only for package gatsby-plugin-offline

2.2.3 (2019-07-12)

Bug Fixes

2.2.2 (2019-07-11)

Note: Version bump only for package gatsby-plugin-offline

2.2.1 (2019-07-04)

Note: Version bump only for package gatsby-plugin-offline

2.2.0 (2019-06-20)

Note: Version bump only for package gatsby-plugin-offline

2.1.3 (2019-06-13)

Note: Version bump only for package gatsby-plugin-offline

2.1.2 (2019-06-12)

Bug Fixes

  • gatsby-plugin-offline: use networkFirst caching for page-data.json files (#14720) (5352411)

2.1.1 (2019-05-17)

Bug Fixes

  • gatsby-plugin-offline: Drop preload link for json from offline shell (#13935) (d1f0ae6)

2.1.0 (2019-05-02)

Features

  • gatsby: add assetPrefix to support deploying assets separate from html (#12128) (8291044)

2.0.25 (2019-03-11)

Note: Version bump only for package gatsby-plugin-offline

2.0.24 (2019-02-19)

Note: Version bump only for package gatsby-plugin-offline

2.0.23 (2019-02-07)

Note: Version bump only for package gatsby-plugin-offline

2.0.22 (2019-01-28)

Features

  • gatsby-plugin-offline: reload when missing resources and SW was updated + add "onServiceWorkerUpdateReady" API (#10432) (4a01c6d)

2.0.21 (2019-01-06)

Note: Version bump only for package gatsby-plugin-offline

2.0.20 (2018-12-17)

Bug Fixes

  • gatsby-plugin-offline: prevent incorrect revisioning of static file by workbox (#10416) (008b5db)

2.0.19 (2018-12-07)

Bug Fixes

  • gatsby-plugin-offline: gracefully degrade if appshell isn't precached (#10329) (19e9f3e)

2.0.18 (2018-11-29)

Note: Version bump only for package gatsby-plugin-offline

2.0.17 (2018-11-21)

Note: Version bump only for package gatsby-plugin-offline

2.0.16 (2018-11-20)

Features

  • gatsby-plugin-offline: replace no-cache detection with dynamic path whitelist (#9907) (8d3af3f)

2.0.15 (2018-11-14)

Bug Fixes

  • gatsby-plugin-offline: fix certain resources being cached excessively (#9923) (7c826a1), closes #9415

2.0.14 (2018-11-13)

Bug Fixes

  • gatsby-plugin-offline: Sync docs with actual defaults being used (#9903) (8cd7432)

2.0.13 (2018-11-08)

Note: Version bump only for package gatsby-plugin-offline

2.0.12 (2018-11-05)

Bug Fixes

  • gatsby-plugin-offline: Serve the offline shell for short URLs + use no-cors for external resources (#9679) (430e8f1), closes #8145

2.0.11 (2018-11-01)

Bug Fixes

  • gatsby-plugin-offline: don't precache the index page (#9603) (00284e0), closes #7997

2.0.10 (2018-10-29)

Note: Version bump only for package gatsby-plugin-offline

2.0.9 (2018-10-24)

Note: Version bump only for package gatsby-plugin-offline

2.0.8 (2018-10-23)

Features

2.0.7 (2018-10-16)

Bug Fixes

2.0.6 (2018-10-09)

Bug Fixes

  • gatsby-plugin-offline: delay adding resources for paths until we have urls (#8613) (2605aa0)

2.0.5 (2018-09-17)

Note: Version bump only for package gatsby-plugin-offline

2.0.0-rc.9 (2018-09-17)

Note: Version bump only for package gatsby-plugin-offline

2.0.0-rc.8 (2018-09-14)

Note: Version bump only for package gatsby-plugin-offline

2.0.0-rc.7 (2018-09-12)

Note: Version bump only for package gatsby-plugin-offline

2.0.0-rc.6 (2018-09-08)

Note: Version bump only for package gatsby-plugin-offline

2.0.0-rc.5 (2018-09-07)

Note: Version bump only for package gatsby-plugin-offline

2.0.0-rc.4 (2018-09-05)

Note: Version bump only for package gatsby-plugin-offline

2.0.0-rc.3 (2018-09-05)

Note: Version bump only for package gatsby-plugin-offline

2.0.0-rc.2 (2018-08-31)

Note: Version bump only for package gatsby-plugin-offline

2.0.0-rc.1 (2018-08-29)

Note: Version bump only for package gatsby-plugin-offline

2.0.0-rc.0 (2018-08-21)

Note: Version bump only for package gatsby-plugin-offline

2.0.0-beta.10 (2018-08-21)

Note: Version bump only for package gatsby-plugin-offline

2.0.0-beta.9 (2018-08-07)

Note: Version bump only for package gatsby-plugin-offline

2.0.0-beta.8 (2018-08-07)

Note: Version bump only for package gatsby-plugin-offline

2.0.0-beta.7 (2018-08-07)

Note: Version bump only for package gatsby-plugin-offline

2.0.0-beta.6 (2018-08-02)

Note: Version bump only for package gatsby-plugin-offline

2.0.0-beta.5 (2018-07-24)

Note: Version bump only for package gatsby-plugin-offline

2.0.0-beta.4 (2018-07-21)

Note: Version bump only for package gatsby-plugin-offline

2.0.0-beta.3 (2018-07-06)

Note: Version bump only for package gatsby-plugin-offline

2.0.0-beta.2 (2018-06-20)

Note: Version bump only for package gatsby-plugin-offline

2.0.0-beta.1 (2018-06-17)

Note: Version bump only for package gatsby-plugin-offline

2.0.0-beta.0 (2018-06-17)

Note: Version bump only for package gatsby-plugin-offline