Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orchard OutputCache and OutputCache HttpModule #5149

Closed
orchardbot opened this issue Apr 10, 2015 · 1 comment
Closed

Orchard OutputCache and OutputCache HttpModule #5149

orchardbot opened this issue Apr 10, 2015 · 1 comment

Comments

@orchardbot
Copy link

@jtkech created:
https://orchard.codeplex.com/workitem/21331

Following the recent discussions on OutputCache in the Committee videos, about public caching, iis kernel cache, and the potential issue with the capture stream...

So, especially if Orchard OutputCache remains not compatible with some content types (but not only), and because the HttpModule is no longer removed in web.config (I didn't notice that), my idea here is to be able, for a specific controller action, to prevent Orchard caching and use the OutputCache HttpModule in a normal way

This, not only with ignoredUrls if many different files can be served by a controller, but maybe by only testing if an [outputCache] attribute is used, even with Duration > 0 and NoStore = false. Of course, for these specific content types we will not have the same Orchard caching rules, but the ability to use e.g all the OutputCacheLocation options...

I've done some tests, with an image file (23 kb) served by a controller, to see server side caching response times. Note that here I don't talk about kernel cache because I never use "HttpCacheability.Public" in my tests, this with maxAge = 0 when testing Orchard caching, and with the "OutputCacheLocation.Server" option on an [outputCache] attribute when only testing the OutputCache HttpModule
.

No caching at all: Response time 12 ms

Orchard caching, maxAge = 0 => no proxies / client caching: Response time 6 ms

HttpModule, [OutputCache] attribute with Duration > 0, and OutputCacheLocation.Server => Cache-Control: no-cache, but caching is done on server: Response time 3 ms

Best

@orchardbot
Copy link
Author

@jtkech commented:

Daniel answered me here
#3
his explanations and what he proposes are perfect for me
Thanks

@pszmyd pszmyd closed this as completed Apr 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants