Welcome to TalkGraphics.com
Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jan 2017
    Posts
    19

    Default Emitted HTML from XTP 23.7 suffix "?5580" to URLs

    Hi,

    My XTP version is Xara Designer Pro+ 23.7.0.68699 SL x64 Feb 21 2024.

    When exporting a website of mine as HTML files to disk, I notice a strange behaviour as lots of emitted URLs has a ?5580-suffix to them, see the image below:
    Click image for larger version. 

Name:	Xara Designer Pro - Emitted 5580 suffix to many URLs.png 
Views:	112 
Size:	65.3 KB 
ID:	134742

    This of course leads to all sorts of trouble when the page tries to load, such as
    "Refused to apply style from 'https://blaba/index_htm_files/xr_fonts.css?5580' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled."

    Does anybody know what is going on? Where does "5580" come from? Is there a known remedy for this behaviour?

    Best regards Bob

  2. #2
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    18,474

    Default Re: Emitted HTML from XTP 23.7 suffix "?5580" to URLs

    Quote Originally Posted by bobvoi View Post
    Hi,
    My XTP version is Xara Designer Pro+ 23.7.0.68699 SL x64 Feb 21 2024.
    When exporting a website of mine as HTML files to disk, I notice a strange behaviour as lots of emitted URLs has a ?5580-suffix to them, see the image below:
    Click image for larger version. 

Name:	Xara Designer Pro - Emitted 5580 suffix to many URLs.png 
Views:	112 
Size:	65.3 KB 
ID:	134742
    This of course leads to all sorts of trouble when the page tries to load, such as "Refused to apply style from 'https://blaba/index_htm_files/xr_fonts.css?5580' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled."

    Does anybody know what is going on? Where does "5580" come from? Is there a known remedy for this behaviour?
    Best regards Bob
    Bob, the query-number (?5580) does not affect the CSS MIME type.
    For instance, <link rel="stylesheet" href="index_html_files/xr_main.css?5580"> is legitimate. It does not include type="text/css", but I don't think that is the problem

    It is more likely that fonts.css is missing altogether If you run https://blaba/index_htm_files/xr_fonts.css?5580 directly, do you get a 404 error?
    If so, you have probably not uploaded part of the index_htm_files/ folder assets.

    Why it is reporting type="text/html" is strange.

    Without the actual URL to the site, I cannot help further.

    The purpose of the query-number addition it to overcome the problems with frequently republishing as the time delay in getting the server to promulgate updates make the website appear funny for hours.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  3. #3
    Join Date
    Jan 2017
    Posts
    19

    Default Re: Emitted HTML from XTP 23.7 suffix "?5580" to URLs

    Just digged a little further and found out that this seems to be a "cache-busting" technique ... somehow ...

  4. #4
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    18,474

    Default Re: Emitted HTML from XTP 23.7 suffix "?5580" to URLs

    Quote Originally Posted by bobvoi View Post
    Just digged a little further and found out that this seems to be a "cache-busting" technique ... somehow ...
    That was my last sentence.

    So we cross-posted.

    It works as the browser sees it as a different file so it has never been cached.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  5. #5
    Join Date
    Jan 2017
    Posts
    19

    Default Re: Emitted HTML from XTP 23.7 suffix "?5580" to URLs

    Thans for the prompt answer Acorn!

    The file do exist, and if I ask for https://blaba/index_htm_files/xr_fonts.css I do get the css file in return. My backend-server is Domino so it might very well be that the problem lies there.

  6. #6
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    22,098

    Default Re: Emitted HTML from XTP 23.7 suffix "?5580" to URLs

    Hi Bob, I get a 'This site can’t be reached' from the link above. Is https://blaba suposed to have a .com or a co.uk or similar appendage to the url?
    Egg

    Minis Forum UM780XTX AMD Ryzen7 7840HS with AMD Radeon 780M Graphics + 32 GB Ram + MSI Optix Mag321 Curv monitor
    + 1Tb SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  7. #7
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    18,474

    Default Re: Emitted HTML from XTP 23.7 suffix "?5580" to URLs

    Quote Originally Posted by Egg Bramhill View Post
    Hi Bob, I get a 'This site can’t be reached' from the link above. Is https://blaba suposed to have a .com or a co.uk or similar appendage to the url?
    Egg, I took it to be just made up to not reveal the actual site URL.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  8. #8
    Join Date
    Jan 2017
    Posts
    19

    Default Re: Emitted HTML from XTP 23.7 suffix "?5580" to URLs

    Hi Egg. Acorn is right, I just hid the domain name a little. The important part was the cache-busting suffix "?5580"

  9. #9
    Join Date
    Jan 2017
    Posts
    19

    Default Re: Emitted HTML from XTP 23.7 suffix "?5580" to URLs

    I have now found out why the cache-busting suffix (such as "?5580") on js, css and woff urls don't work for me.

    The explanation is related to my web server, which is HCL Domino. It expect the first parameter to be an "action" such as OpenDocument, OpenView, OpenAgent etc (interested persons can see more here) on Domino-related resources such as views, documents and agents. Urls to other resources shouldn't have any parameters.

    In other words, the cache-busting technique, most probably only is used on resources that previously haven't had these suffixes, such as js, css, woff and other typical resource-files. The more I read about cache-busting, I see that people recommend all sorts of suffixes, such as ...somesheet.css?version=1.0, or ...somesheet.css?whatever. The concept is that the web server or proxy doesn't get a chance to cache the url between publishing sessions.

    So, I hope Xara can publish more information about what url types (or file types) they suffix cache-busting numbers to, or even better, implement some way of telling a web-project that this particular project shouldn't emit cache-busting numbers at all. This can of course be via the UI, or by having a special HTMLHEAD-variable present in the page.

    I will probably pursure the challenge myself as I have a preprocessor between Xara and Domino which I have made myself. This can be extended to strip away the cache-busting suffix (The function will probably be named BustTheCacheBust() :-). It would anyway be useful to know precicely which file types Xara emit cache-busts too.

    Thanks for chiming in Acorn and Egg. I love the commitment in this group! I was pretty wild looking yesterday!

    Name:  IMG_1822-thumbs.JPG
Views: 373
Size:  8.1 KB

  10. #10
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,653

    Default Re: Emitted HTML from XTP 23.7 suffix "?5580" to URLs

    I have moved this thread to Web Design Chat

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •