Understanding Sitecore’s Cache-Control for Media Items

So, one of my colleagues contacted me with a simple question – why was Azure Front Door not caching his pages and images. Well, I think there were two different reasons; one for pages (discussed there) and one for images (discussed here).

This is a bit simpler than the problem with pages, but highlights that, if you’ve a problem and you dig through the <settings> section of Sitecore’s config, you’ll eventually come across some kind of setting that relates to your problem.

Continue reading “Understanding Sitecore’s Cache-Control for Media Items”
Understanding Sitecore’s Cache-Control for Media Items

Spurious Pragma Header in Sitecore Page Responses

So, one of my colleagues contacted me with a simple question – why was Azure Front Door not caching his pages and images. Well, I think there were two different reasons; one for pages (discussed here) and one for images (discussed there).

The short answer for pages was “Because the setting DisableBrowserCaching was set to true”. This appears to be a default for Sitecore (and is probably appropriate for Analytics and tracking reasons – though not all of our customers use analytics). I mean, the setting in ShowConfig.aspx is pretty well described.

But wait… what’s this mention of Pragma: no-cache?

Continue reading “Spurious Pragma Header in Sitecore Page Responses”
Spurious Pragma Header in Sitecore Page Responses

Debugging – Why my Content Editor was so slow

A customer reported to me that their content editor would freeze for 5 minutes if you clicked the root node of their site in Content Editor. I was surprised – bit when I went and did so, it froze for 5 minutes.

Now, this was on a newly upgraded and replatformed system, so I when and tried their existing system – and had the same result. The first click on the root node would take 5 minutes to load. So, it wasn’t our upgrade – but that I could study more easily. As it was the first click only, I figured caching was involved – but what gives? How do I find out what’s going on?

Continue reading “Debugging – Why my Content Editor was so slow”
Debugging – Why my Content Editor was so slow

Programmatically caching things in Sitecore

I’ve seen a number of Sitecore projects now that use the ASP.NET cache, and this bothers me slightly. Shouldn’t Sitecore – which does have it’s own caching – offer a way of caching itself? Perhaps with integration to things like ‘clear cache on publish’, etc.?

Well, it does, and Anders Laub describes it neatly in “How to create a custom cache in Sitecore“.  Continue reading “Programmatically caching things in Sitecore”

Programmatically caching things in Sitecore