Gatsby E-commerce website cache issue with frequent builds - node.js

I've built a large e-commerce website with around 1000 products in gatsby which we are deploying every day, sometimes multiple times per day but the problem we are having is that after each update users have problems with content, the links not working and other things like images not showing. However, when you clear the cache or open the website in incognito mode (sometimes on refresh the page) then it's working properly.
I've tried to add this code into the gatsby-browser.js file, but it didn't fix this issue.
export function onServiceWorkerUpdateReady(){window.location.reload(true)};

Related

What is causing website to load inconsistently in Safari?

I am working on some website edits for a client and am running into an issue where the website no longer loads consistently in Safari. It will sometimes load if refreshed enough times but generally it just shows a white screen.
I have only made a couple of small changes to the site in their host Web.com's website builder (editing the navigation and removing a few buttons from pages), so I'm super confused on what would have caused this to happen. The website can be viewed here: https://www.larrypratt.com/
Has anyone encountered this sort of thing before? Thanks.

Puppeteer can't browse properly

I use node application to scrap data using Puppeteer and chromium.
At the beginning everything was fine. I was able to scrap data in
google maps and jump between pages normally. but after 3 days working
on same project (after so many tries.... lunching the bot) things changed.
now when I execute the app, the browser lunch and only first page in google map appears (without any next button ) than the browser stops since it can't query and select the next button. I checked the web document, (no elements changes, same classes, same links ..)
then I used the same link but without a bot by browsing it manually. I find the same page
number my bot did the first time I ran the app.
Didn't understand the secret behind this behavior.
Help, Thanks.

Azure pricing calculator not updating estimates

I am trying to price out various azure services and when I add them to the calculator and make changes the estimate does not update.
I have tried this in Edge, IE, Chrome, Firefox (normal browsing and Private) and I get the same results.
I also ran CCleaner and removed all of the files for each browser.
The calculator did work a few days ago.
Any ideas?
I had the same problem. A solution that works for me is to open a new InPrivate window from the Edge browser. (A new private window from Firefox did not solve the problem).
Perhaps the problem is related to cookies? I have not tested after deleting all cookies. #jake, when you used CCleaner, was it set to delete cookies or just cached data and files?
(For what it is worth, in the Firefox developer console I see several warnings related to failed loading of JS scripts. I can't say if such a failure is the cause of the problem, but it looks like Microsoft needs to do better testing of the calculator page.)

Set the order that the browser downloads the images in

Is it possible to set the order in which images are downloaded by the browser ? Ive got about 20 images on a page and looking the network tab in developer tools in chrome they seems to be downloaded in no particular order, and the order differs every time the page is loaded.
Ive looked at some lazy loading JS plugins, but these all seem to have the same core issue that they remove the image src and replace it later, thus forcing the browser to take images in order, but this is TERRIBLE for seo as a search engines bot will disregard an image with no src.
Is there any other way to do this ?

Azure Websites Orchard Memory Consumption

I have had my blog running on Orchard in Azure for, I dunno, a few months probably. All has been well. I have about 10 content items. It is a small site. I'm running it in Shared mode. Browsing the site is fine, it is fast and all is great. But today I have been trying to edit some posts and add some new ones. My per minute CPU usage is just going crazy and keeps crashing the site and hence I cant save anything. Pressing publish just destroys the site.
I'm not upgrading to reserved mode like it keeps recommending for a fucking little blog with about 3 viewers.
Any ideas why the cpu usage could be going so crazy?
Error logs are pretty much empty, occasional error from disqus but that is only when I am loading blog posts...
UPDATE 1:
Removed disqus just in case. Still failing miserably with massive loads to publish content items.
UPDATE 2: Kinda strange... error logs say A tenant could not be started: Default. Sequence contains more than one element. I think it is talking about routes.
at Orchard.Mvc.Routes.StandardExtensionRouteProvider.d__a.MoveNext() in c:\Users\sebros\My Projects\Orchard\src\Orchard\Mvc\Routes\StandardExtensionRouteProvider.cs:line 24
You should check that extensions monitoring is disabled. It creates lots of FileSystemWatcher instances in order to get dynamic compilation responsive to live files modifications but it's unnecessary in production environments.
Look at "Disabling the Dynamic Module Loader" section on this page: http://docs.orchardproject.net/Documentation/Orchard-module-loader-and-dynamic-compilation

Resources