Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Debasish Gracias 32 posts 164 karma points
    Dec 06, 2021 @ 12:42
    Debasish Gracias
    0

    How to set http response headers for umbraco 7

    We need to implement Azure front door caching for our umbraco project running on v7. Here are some official Microsoft docs that I have read to understand more about this.

    https://docs.microsoft.com/en-us/azure/cdn/cdn-how-caching-works

    https://docs.microsoft.com/en-us/azure/frontdoor/front-door-caching

    https://docs.microsoft.com/en-us/azure/frontdoor/front-door-overview

    After reading these articles, it seems we need to set specific response headers mentioned below so that front door knows what to do.

    Cache-Control: s-maxage=(seconds)

    Cache-Control: max-age=(seconds)

    Expires: (http-date)

    I believe we need to set the response headers in our umbraco solution. Any idea on how to go about implementing this for Umbraco 7 ?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies