question: protected boolean accept ( String path ) { if ( path . equals ( "hosted.html" ) || path . endsWith ( ".devmode.js" ) ) { return false ; } if ( path . equals ( "/" ) ) { return true ; } int pos = path . lastIndexOf ( '.' ) ; if ( pos != - 1 ) { String extension = path . substring ( pos + 1 ) ; if ( DEFAULT_EXTENSION_WHITELIST . contains ( extension ) ) { return true ; } } return false ; }
target:  Determines whether our not the given should be included in the app cache manifest. Subclasses may override this method in order to filter out specific file patterns.