• Resolved James Hunt

    (@bonkerz)


    Hey guys:

    A simple question, with I guess a not so simple answer – what are the steps to solve this issue?

    Above The Fold Optimization
    The Proxy Cache directory contains 2,167 cache entries. This may indicate that auto-capture captures a script with a changing url that causes a new cache entry to be created on each request.
    The Proxy configuration page shows a solution to capture scripts with a changing url using a JSON config object.

    Have literally zero clue of what to do and what to look for, so any help, I have search this forum, would be greatly appreciated.

    D

Viewing 1 replies (of 1 total)
  • Plugin Author optimalisatie

    (@optimalisatie)

    Hi bonkerz,

    If you use auto capture to proxy any script and if the website contains a script with a changing url, e.g. a timestamp query string, a new cache entry will be created for each request causing the cache directory to fill. The configuration page shows a solution to capture such scripts by using a JSON config object.

    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"}

    The regex in the example will capture scripts with the url https://app.analytics.com/file.js?123456789 and create 1 cache entry.

Viewing 1 replies (of 1 total)
  • The topic ‘How to solve: The Proxy Cache directory contains XXX cache entries’ is closed to new replies.