Umbraco xStatic

I have an Umbraco site running in production on IIS. There have been no problems with xStatic when publishing new content but suddenly the static files that are generated does not contain the newest content. I have tried to restart the server, cleared all Umbraco caches. checked the Umbraco logs. Everything seems to be fine but there is old content i the static files that are created.

Does anyone have an idea about what is wrong?

Browser cache…?

Nothing off the top of my head. Can you provide some details about the setup that you currently have–what are your Umbraco and xStatic versions?

Umbraco 13.0.3
xStatic 3.1.1

All caches are cleared.

Why not update Umbraco to the latest version first to exclude an issue with Umbraco? This also solves some security issues.

Out of curiosity, why would you work with Umbraco 13.0.3?

I tried Umbraco 14 locally and there are some bugs in the backoffice parts and the documentation for v.14 is not in sync with the backoffice UI. I also had to rewrite a lot of my blocks to work in Umbraco 14.

I also find it a bit difficult to understand how to upgrade Umbraco in the easiest way possible and at the same time include everything.

I meant the latest update of 13, 13.7.2 :slight_smile:

That´s my idea. I have installed Umbraco 13.7.2 and xStatic 13.0.0 locally and it seems to be working.

Last time someone did a publish on the prod server (IIS) was in the middle of mars and it has been working since last summer without any problems and suddenly the generation of static files stopped working. The files are created but not with the latest version of the content. When I check the database it seems like the new data is added as a new version. I have a similar local installation with the same versions of Umbraco and xStatic and there it´s working without any problems.

I have also tried the production database in my local environment and it´s working fine.

Thank you for providing that information about your setup.

With files being generated but with older content, my initial thought is that it might be something to do with the hostname and how xStatic is looking at the incorrect site to build the pages.

Is there an assignment of a domain under the Culture and Hostnames?

2 Likes

When I look at the changed content of a page inside Umbraco then it´s ok but when xStatic is generating the HTML-files the files contains old content. I don´t really understand where xStatic is getting the content from. I have tried to clear and delete all caches without result.

Thank you so much Adam Werner. That was the problem. When I registered the domain with sub-domain included it seems to be working.

  1. Go to start-node
  2. Right-click - Add domain
  3. Register the domain
1 Like