Hot answers tagged

5 votes
Accepted

Sitecore media library - unable to load large files ( > 8MB) via Azure Front Door

Azure Front Door and Azure CDN use the RFC-7233 implementation of Range header requests. (Source) In Sitecore, the Media.EnableRangeRetrievalRequest setting is enabled by default. It is implemented ...
user avatar
  • 4,805
4 votes

Can we serve all the content pages from CDN instead?

Actually a product exists which supports to serve HTML from CDN (currently Netlify Edge) for Sitecore. It's called Uniform for Sitecore available here: https://uniform.dev/sitecore-netlify-stack. Here ...
user avatar
4 votes

Can we serve all the content pages from CDN instead?

You could serve your content pages from any CDN which supports serving html. Question is, do you want to do this and why? Let's just think about 1 thing: Your client bought Sitecore, not wordpress. ...
user avatar
4 votes
Accepted

Sitecore with personalisation and CDN such as CloudFlare

I'm on a proof of concept for the same question at the moment this week. What i'm doing: 1. no caching for personalisation - Set Cache header for all pages ==> Hit from Cloudfront - Set No Cache ...
user avatar
  • 126
4 votes

Updated media Item is not showing on the site due to caching set on CloudFlare/CDN

Adding a query string will fix your issue. But it will break all your analytics reports(For example you won't be able to track number of downloads for any given pdf etc) I would utilise cloudflare ...
user avatar
  • 41
3 votes

Sitecore Media Request Protection errors with CDN enabled

I think that this is a bug in Sitecore. Here's whats happening When you enable the CDN config, it sets Media.AlwaysAppendRevision to true This appends rev=xxx to all media urls The media request ...
user avatar
  • 4,805
3 votes

CORS Error while downloading the fonts from the Azure CDN using Sitecore PaaS

To resolve the CORS CDN error , You would need to create a pipeline which adds the below request headers.This pipeline was written for Cloudfront on Amazon AWS instance , but the underlying logic is ...
user avatar
  • 1,603
3 votes

MediaLinkServerUrl per site

Custom code is necessary to achieve this since you want to generate media urls in different ways based on the context site. Override the MediaProvider and provide config nodes to determine which ...
user avatar
2 votes

Sitecore with personalisation and CDN such as CloudFlare

It truly depends on how the CDN is setup. The way we have done it is that its transparent and has nothing to do with Sitecore. If an image/asset (js/css/docs) are requested by the end user, the first ...
user avatar
  • 2,353
2 votes
Accepted

Why does Sitecore CMS UI trigger OWASP captcha when combined with Cloudflare?

After speaking to Sitecore Support I received the following answer. I hope this can help someone else experiencing the same situation. Sitecore client/backend does not support running behind a CDN ...
user avatar
  • 1,059
2 votes

Updated media Item is not showing on the site due to caching set on CloudFlare/CDN

The simplest solution is to append an additional querystring parameter such as the updated date or revision id like in this previous answer I provided. You can do this by inheriting MediaProvider and ...
user avatar
  • 13.7k
2 votes

CORS Error while downloading the fonts from the Azure CDN using Sitecore PaaS

You can add the following rewrite rule to your web.config to add the required header on font files. The benefit of this is that you don't need any extra code - IIS rewrite module is available by ...
user avatar
  • 4,805
2 votes

CDN images on EXM email generation

I could not find anything about EXM and CDN urls. I guess it is expected in the scaled environment, the EXM dispatcher would be on its own server witn CDN turned on. For my CM environment, I added a ...
user avatar
  • 12.9k
1 vote
Accepted

Set cache-control header to public

Cristi answer pointed me to right direction, however at the end I extended GetPageRenderingProcessor. public class CustomBrowserCaching : GetPageRenderingProcessor { public override void ...
user avatar
  • 171
1 vote

Set cache-control header to public

In App_Config/Sitecore.config there is a processor defined for setting browsercaching <processor type="Sitecore.Pipelines.RenderLayout.BrowserCaching, Sitecore.Kernel" /> You can take ...
user avatar
1 vote

Can we serve all the content pages from CDN instead?

You can serve the pages entirely from CDN and use FXM to track the analytics. Definitely it needs AJAX implementation to dynamically load the personalized content. https://github.com/brimfulofashar/...
user avatar
  • 193
1 vote

Sitecore Media Request Protection errors with CDN enabled

I stumbled across this while looking for a solution to the same issue and thanks to Mark's info I was able to get rid of the log spam by simply wrapping the GetMediaUrl in an extension method in which ...
user avatar
1 vote
Accepted

Securing the Sitecore client on a single server setup with CDN

You can setup CDN normal way, but block access to the /sitecore on the CDN level. Then add subdomain like cms.example.com that points to the same server but without CDN. And you can setup ip ...
user avatar
1 vote
Accepted

Request Entity Too Large Error from CDN When WFFM form Submitted

I got some help from one of my colleague about this issue So basically the suggestion made by the hosting provider about Request Header size is incorrect. There is a defined limit for Request ...
user avatar
  • 3,697

Only top scored, non community-wiki answers of a minimum length are eligible