CTRL->admin->newline_array_string($jsPreload); } else { $jsPreload = ''; } // css preload list if (isset($options['css_proxy_preload']) && !empty($options['css_proxy_preload'])) { $cssPreload = array(); foreach ($options['css_proxy_preload'] as $url) { $cssPreload[] = (is_string($url)) ? $url : json_encode($url); } $cssPreload = $this->CTRL->admin->newline_array_string($cssPreload); } else { $cssPreload = ''; } // cache stats $cache_stats = $this->CTRL->proxy->cache_stats(); ?>

Google Bot

The external resource proxy loads external resources such as scripts and stylesheets via a caching proxy.

This feature enables to pass the Leverage browser caching rule from Google PageSpeed Insights.

Proxy Scripts

Capture external scripts and load the scripts through a caching proxy.

 
 Proxy Include List

Enter (parts of) external javascript files to proxy, e.g. google-analytics.com/analytics.js or facebook.net/en_US/sdk.js. One script per line.

 
 Proxy Exclude List

Enter (parts of) external javascript files to exclude from the proxy. One script per line.

 
 Proxy Preload List

Enter the exact url or JSON config object [?] of external scripts to preload for "script injected" async script capture, e.g. https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js. This setting will enable the proxy to load the cache url instead of the WordPress PHP proxy url. One url or JSON object per line.

Proxy Stylesheets

Capture external stylesheets and load the files through a caching proxy.

 
 Proxy Include List

Enter (parts of) external stylesheets to proxy, e.g. googleapis.com/jquery-ui.css. One stylesheet per line.

 
 Proxy Exclude List

Enter (parts of) external stylesheets to exclude from the proxy. One stylesheet per line.

 
 Proxy Preload List

Enter the exact url or JSON config object of external stylesheets to preload for "script injected" async stylesheet capture, e.g. http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css. This setting will enable the proxy to load the cache url instead of the WordPress PHP proxy url. One url or JSON object per line.

   

JSON Proxy Config Object

JSON config objects enable advanced file based proxy configuration. JSON objects can be used together with simple file entry and must be placed on one line (no spaces are allowed).

JSON config objects must contain a target url (the url that will be downloaded by the proxy). Regular expression enables to match a source URL in the HTML, e.g. an URL with a cache busting date string (?time) or an url on a different host. Valid parameters are url, regex, regex-flags, cdn and expire (expire time in seconds).

Example:
{"regex": "^https://app\\.analytics\\.com/file\\.js\\?\\d+$", "regex-flags":"i", "url": "https://app.analytics.com/file.js", "expire": "2592000"}

Proxy CDN

Enter the default CDN url for cached resources, e.g. https://cdn.domain.com/wp-content/uploads/abovethefold/proxy/.../resource.js. You can set a custom CDN per individual resource using a JSON config object.

Proxy URL

Enter a custom proxy url to serve captured external resources. There are 2 parameters that can be used in the url: {PROXY:URL} and {PROXY:TYPE}.

E.g.: https://nginx-proxy.mydomain.com/{PROXY:TYPE}/{PROXY:URL}. Type is the string js or css.




Cache Stats 

Files:
Size: CTRL->admin->human_filesize($cache_stats['size']); ?>

Stats last updated:


Refresh Stats Empty Cache