I'm trying to implement a caching for some views and files on my MVC4 page (would like to chache on server and client). Looks easy but i dont get it why it doesnt work for me. I've tried this little example down here:
[OutputCache(Duration = 30000)]
public string Test()
{
return DateTime.Now.ToLongTimeString();
}
Unfortunately the time of the result changes every second.. are there any settings in the webconfig or iis that must have been set? I didnt found anything about that but have no idea why even this little example doesnt work. Hope you can help me?
thanks in advance!