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

    cachePost

    zaiveeBy zaiveeFebruary 6, 2023No Comments1 Min Read

    Property Manager Name: Cache POST Responses

    By default, POST requests are passed to the origin. This behavior overrides the default and allows you to cache POST responses.

    Options

    • enabled (boolean): Enables caching of POST responses.
    • useBody (enum string): Define how and whether to use the POST message body as a cache key:
      • IGNORE uses only the URL to cache the response.
      • MD5 adds a string digest of the data as a query parameter to the cache URL.
      • QUERY 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 cacheId to define relevant query parameters.)

    Related Posts

    webdav

    February 6, 2023

    returnCacheStatus

    February 6, 2023

    responseCode

    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.