Facebook Twitter Instagram YouTube LinkedIn WhatsApp
    Facebook Twitter Instagram LinkedIn WhatsApp
    ZaveRizwanZaveRizwan
    Subscribe
    • Home
    • Features
      • Example Post
      • Typography
      • Contact
      • View All On Demos
    • Mobiles
    • Typography
    • Mobiles
      • Tech
      • Gadgets
      • Insights
    • Buy Now
    ZaveRizwanZaveRizwan
    Behavior

    cacheError

    zaiveeBy zaiveeFebruary 6, 2023No Comments1 Min Read

    Property Manager Name: Cache HTTP Error Responses

    Caches the origin’s error responses to decrease server load. Applies for 10 seconds by default to the following HTTP codes: 204, 305, 400, 404, 405, 501, 502, 503, 504, and 505.

    Options

    • enabled (boolean): When enabled, activate the error-caching behavior.
    • ttl (duration string): Overrides the default caching duration of 10s. Note that if set to 0, it is equivalent to no-cache, which forces revalidation and may cause a traffic spike. This can be counterproductive when, for example, the origin is producing an error code of 500.
    • preserveStale (boolean): When enabled, the edge server preserves stale cached objects when the origin returns 400, 500, 502, 503, and 504 error codes. This avoids re-fetching and re-caching content after transient errors.

    Related Posts

    webdav

    February 6, 2023

    downgradeProtocol

    February 6, 2023

    randomSeek

    February 6, 2023
    Add A Comment

    Leave A Reply Cancel Reply

    © 2023 ZaveRizwan. Designed by ZaveRizwan.
    • Home
    • Tech
    • Gadgets
    • Mobiles
    • Buy Now

    Type above and press Enter to search. Press Esc to cancel.