Skip to content

Commit

Permalink
Make functions private
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Gaunt committed Feb 16, 2018
1 parent 68a425a commit 43f350e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/workbox-core/_private/checkSWFileCacheHeaders.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const MAX_AGE_REGEX = /max-age\s*=\s*(\d*)/g;
* to max-age=0 or no-cache.
*
* @param {string} cacheControlHeader
*
* @private
*/
function showWarning(cacheControlHeader) {
const docsUrl = 'https://developers.google.com/web/tools/workbox/guides/service-worker-checklist#cache-control_of_your_service_worker_file';
Expand All @@ -38,6 +40,8 @@ function showWarning(cacheControlHeader) {
* Checks for cache-control header on SW file and
* warns the developer if it exists with a value
* other than max-age=0 or no-cache.
*
* @private
*/
async function checkSWFileCacheHeaders() {
try {
Expand Down

0 comments on commit 43f350e

Please sign in to comment.