Ejemplo n.º 1
0
  public ReferrerPushStrategy() {
    List<String> defaultPushRegexps =
        Arrays.asList(
            ".*\\.css", ".*\\.js", ".*\\.png", ".*\\.jpeg", ".*\\.jpg", ".*\\.gif", ".*\\.ico");
    addPushRegexps(defaultPushRegexps);

    List<String> defaultPushContentTypes =
        Arrays.asList(
            "text/css",
            "text/javascript",
            "application/javascript",
            "application/x-javascript",
            "image/png",
            "image/x-png",
            "image/jpeg",
            "image/gif",
            "image/x-icon",
            "image/vnd.microsoft.icon");
    this.pushContentTypes.addAll(defaultPushContentTypes);
  }
Ejemplo n.º 2
0
 public void setPushRegexps(List<String> pushRegexps) {
   pushRegexps.clear();
   addPushRegexps(pushRegexps);
 }