Aveam nevoie ca la un controler din master page sa seteze output cache. Declar acest lucru fara probleme si la compilare descopar spre surprinderea mea ca nu pot sa am output cache in master page. Nici o problema zic, il declar in fis. de configurare sub forma: <caching> <outputCache enableOutputCache="true" /> <outputCacheSettings> <outputCacheProfiles> <add duration="20" enabled="true" varyByController="numeControl" name="AssetCacheProfile" /> </outputCacheProfiles> </outputCacheSettings> </caching> Toate bune si frumoase, doar ca nu pot sa refer un output cache profile din master page. Asa ca ajung sa scriu intr-un Page de baza, din care toate aspx mostenesc ceva de genul: Response.Cache.SetExpires(DateTime.Now.AddSeconds(20)); Response.Cache.SetCacheability(HttpCacheability.ServerAndPrivate); Response.Cache.SetValidUntilExpires(true); Intrebarea: De nu pute
DREAMER, CRAFTER, TECHNOLOGY ENTHUSIAST, SPEAKER, TRAINER, AZURE MVP, SOLVING HARD BUSINESS PROBLEMS WITH CUTTING-EDGE TECHNOLOGY