Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

Slow loading times on Preprod on DXP (with ImageProcessor)

$
0
0

Hello!

We have noticed a weird behaviour on Preproduction on DXP. The enviroment is very slow sometimes and I can replicate the behaviour by changing Query-params. Se below:

Request:

1 - Old request. Width=350 is the default URL for one of our images.

2 - After I manually change the Width to something new. 374 has not been used before and therefor the request takes a bit longer as noticed.

3 - I refresh the page. The request now takes almost a full minute to load. This is what we are struggling with - to figure out why.

Preprod:

If we run the same code and DB on Integration we get these results:

SW.js:

We had the same problem before we implemented the serviceworker, and have the SW.JS on both enviroments - so it shouldn't anything to do with it.

ImageProcessor:

We are going to try to override some default behaviour to put timestamps on the processor to see if it has anything to do with this. But we do run the imageprocessor on our local dev enviroment and Integration, so it shouldn't be at fault?

CloudFlare CDN-cache:

Checking the Request Headers on request #2 it says:
cf-cache-status: MISS

But so does Request #3.
It is as if the second request tells DXP to serve the CDN-Cached image on the second request, but the CDN is not ready yet?

Versions:
<package id="ImageProcessor" version="2.8.0" targetFramework="net472" />
<package id="ImageProcessor.Plugins.WebP" version="1.3.0" targetFramework="net472" />
<package id="ImageProcessor.Web" version="4.11.0" targetFramework="net472" />
<package id="ImageProcessor.Web.Config" version="2.6.0" targetFramework="net472" />
<package id="ImageProcessor.Web.Episerver" version="5.5.0.35788" targetFramework="net472" />
<package id="ImageProcessor.Web.Episerver.Azure" version="5.6.0.24777" targetFramework="net472" />
<package id="ImageProcessor.Web.PostProcessor" version="1.5.0" targetFramework="net472" />

TAGS: ImageProcessor, CloudFlare, DXP, DXC


Viewing all articles
Browse latest Browse all 9076

Trending Articles