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

    Cache POST Responses

    zaiveeBy zaiveeFebruary 6, 2023No Comments1 Min Read

    Enable caching of POST responses.

    How it works

    By default, POST requests are passed to the origin. With this behavior enabled, you can override the default and cache POST responses. To use this behavior, you must enable the Allow POST behavior.

     

    Features and options

    Field What it does Sub-options
    Status Enables or disables the behavior.
    POST Body Define whether and how the POST message body is used for the cache key.
    • Ignore in the cache key. Uses only the URL to cache the response.
    • Include an MD5 hash in cache key. Adds a string digest of the data as a query parameter to the cached URL.
    • Include as a query parameter in cache key. Adds the raw request body as a query parameter to the cache key, but only if the POST request’s Content-Type is application/x-www-form-urlencoded. Use this in conjunction with Cache ID Modification to define relevant query parameters.

    Related Posts

    webdav

    February 6, 2023

    readTimeout

    February 6, 2023

    redirect

    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.