Orckestra / CMS-Packages

Add-ons for C1 CMS
https://cms.orckestra.com/Add-ons
13 stars 21 forks source link

[Composite.AspNet.MvcFunctions] OutputCacheAttribute attribute is ignore #114

Closed napernik closed 2 years ago

napernik commented 4 years ago

Repro Create an MVC action function with the OutputCacheAttribute attribute to disable caching:

    [OutputCache(Duration = 0, NoStore = true)]
    public ActionResult MyFunction()
    {
        return View("TestView");
    }

Expected Caching for whole page should be disabled.

Actual Caching is still on.

There's a fix for 1.1.x version of a package for 6.9 version https://github.com/Orckestra/CMS-Packages/commit/c8421754691c7ac40d19b8f48a0291cff2c2ecdb,

A fix for older versions of C1 is also required.