Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Peter Cort Larsen 418 posts 1015 karma points
    Dec 16, 2022 @ 08:22
    Peter Cort Larsen
    0

    Umbraco 11 JS changes not picked up

    Hi,

    I have a Umbraco 11 site.

    On prod. debug is set false, as it should be.

    When ever i for example make changes to a js file, these changes are not picked up on production, unless i set debug to true and after revert it back to false. This is pretty irritating, cant this be done automatically somehow?

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Dec 16, 2022 @ 09:34
    Dave Woestenborghs
    0

    Hi Peter

    Can you provide some more info.

    Is it a js file used in a backoffice plugin or a js file used in the front end of your website ?

    If it's the last how are you rendering it.

  • Peter Cort Larsen 418 posts 1015 karma points
    Dec 16, 2022 @ 10:43
    Peter Cort Larsen
    0

    Hi,

    Its for the assets used on the frontend. According to the docs for umbraco 11, i use this approach (https://docs.umbraco.com/umbraco-cms/fundamentals/design/stylesheets-javascript#bundling-and-minification-for-javascript-and-css) for adding styles and scripts. As illustrated, i even tried to change the cache of the js file, by adding this at the end ?v=1, but that didnt help.

    enter image description here

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Dec 16, 2022 @ 10:55
  • Peter Cort Larsen 418 posts 1015 karma points
    Dec 16, 2022 @ 11:06
    Peter Cort Larsen
    0

    Wow, those settings i have overlooked, since this i my first vers 11.

    Thanks, thats proably what i needed.

    Ill check it out.

Please Sign in or register to post replies

Write your reply to:

Draft