tasks/buildHtml.js
function (remoteUrl) {
      if (remoteUrl.indexOf('http') !== 0) {
        grunt.log.error('Something seems wrong with this remote url: ' + remoteUrl);
      }
      return remoteUrl.toLowerCase().replace('://', '@@').replace(/\?/g, '@');
    }
function (remoteUrl) {
      if (remoteUrl.indexOf('http') !== 0) {
        grunt.log.error('Something seems wrong with this remote url: ' + remoteUrl);
      }
      return remoteUrl.toLowerCase().replace('://', '@@').replace(/\?/g, '@');
    }
function ( remoteUrl ) { if ( remoteUrl . indexOf ( 'http' ) !== 0 ) { grunt . log . error ( 'Something seems wrong with this remote url: ' + remoteUrl ) ; } return remoteUrl . toLowerCase ( ) . replace ( '://' , '@@' ) . replace ( / \? / g , '@' ) ; }
Transform URL to cache key in order to dump its content
@param remoteUrl Remote content URL
@returns {string|*} URL as cache key
Transform URL to cache key in order to dump its content