November Happy Hour will be moved to Thursday December 5th.

Cache control - max-age goes crazy

Vote:
 

Have decorated an Action method with ContentOutputCache attribute, and have set the Duration to 900 sec.

1) First load it`s all fine

Cache-Control:public, max-age=900

2) But after reloading the page, it changes to:

Cache-Control:public, max-age=63613596193

I have no idea, why it changes, for sure it`s not browser related.

Have disabled nearly everything (Episerver plugins, rewrites, adding custom headers) - and still it`s the same.

All I can think of is that is some crazy Episerver issue (v9.12), but it gets even worse, as it behaves the same when I change the ContentOutputCache to OutputCache.

Any tips?

#171081
Nov 01, 2016 12:27
Vote:
 

I'm experiencing the same problem with max-age, but only on Azure, not on my local IIS.

Did you find a solution Michael?

#171602
Nov 11, 2016 17:45
Vote:
 

Can you clarify these items:

  1. R you testing with CDN?
  2. If it is local what version of IIS r you using?
  3. Can you share cache section  of your web.config?

Aria

#171623
Nov 14, 2016 1:43
Vote:
 

Turns out it has nothing to do with Episerver. It's a regression in .NET 4.6.2, see https://github.com/Microsoft/dotnet/issues/330

#171684
Edited, Nov 14, 2016 22:25
Vote:
 

Kristian You just saved my day, as I was going to investigate it today. Kudos man!

#171691
Nov 15, 2016 10:14
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.