Each time a URL is to be processed, WebCopy performs a number of different checks, including rule execution. However, rule execution is currently "quirky" and may not execute as expected - essentially rules are processed as two independent groups, although the UI currently only shows a single list.

Important

The behaviour of content type based rules may change in future versions of WebCopy to reduce confusion.

Stage 1 - Pre-headers

  1. WebCopy enumerates each rule
  2. If the rule is disabled, it is ignored
  3. If the rule is configured to test against a content type, it is ignored
  4. If the rule has a URI expression and the expression does not match the URI being process, it is ignored
  5. If the rule is a match, the outcome will be set to the rule condition (e.g. excluded or included)
  6. If the rule is a match and the Stop Processing flag is configured for the rule, no further rules are processed
  7. If the rule is not a match, or the Stop Processing flag is not configured, the next rule is tested

The last matched status is then used to determine if the URI should be included or excluded.

Stage 2 - Post-headers

If the URL was not excluded via stage 1, a HEAD or GET request will be made to get the headers for additional processing. At this point, rules are processed again as follows

  1. WebCopy enumerates each rule
  2. If the rule is disabled, it is ignored
  3. If the rule is configured to test against anything other than a content type, it is ignored
  4. If the rule has a URI expression and the expression does not match the URI being process, it is ignored
  5. If the rule is a match for the content type of the URL being processed, the outcome will be set to the rule condition (e.g. excluded or included)
  6. If the rule is a match and the Stop Processing flag is configured for the rule, no further rules are processed
  7. If the rule is not a match, or the Stop Processing flag is not configured, the next rule is tested

The last matched status is then used to determine if the URI should be included or excluded.

© 2010-2024 Cyotek Ltd. All Rights Reserved.
Documentation version 1.10 (buildref #186.15944), last modified 2024-08-18. Generated 2024-08-18 08:01 using Cyotek HelpWrite Professional version 6.20.0