HttpCacheHeaders icon indicating copy to clipboard operation
HttpCacheHeaders copied to clipboard

7.1.0 contains bug when HttpCacheExpiration and HttpCacheValidation attributes are applied on controller and on action

Open ernestas20111 opened this issue 11 months ago • 1 comments

This bug was probably introduced in 7.1.0 version.

If both - controller and action contain HttpCacheExpiration and HttpCacheValidation attributes with different values. Action for some reason inherits values set on controller and not on action. In other words, attributes applied to action do not take any effect, unless attributes are removed from controller level.

Note: In version 7.0.0 everything seems to be working as expected.

ernestas20111 avatar Mar 21 '24 13:03 ernestas20111

Hmm, odd, something like that should've been caught by the unit tests. Thanks for letting me know, I'll have a look!

KevinDockx avatar Apr 15 '24 08:04 KevinDockx

I'm experiencing the same problem following the course on pluralsight using version 7.1.0 - switching to version 7.0.0 the settings on the action override the settings on the controller but then the cache isn't used even though cache control is set to: public,max-age=1000. There should be an age when sending the same request within the specified time span but there isn't.

wsigel avatar Jul 29 '24 19:07 wsigel

Fixed in 7.2.0

KevinDockx avatar Sep 02 '24 09:09 KevinDockx