• sinclone

    (@sinclone)


    Hi there,

    I am wonder if my configuration is wrong. Whenever a url has parameters like ?layout=ulisting_type_page_layout_4 or any others, the page Css and JS will not combine. Can i know how to make them combine?

    Thanks
    jerry

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @sinclone This is a normal behaviour because the URL is not SEO friendly and not cached by many page caching plugins OR page caching tools used by hosting companies. Moreover, Asset CleanUp caches the combined CSS/JS based on the URI (part of the URL) that is SEO friendly. If that won’t happen, it will have to be combined on the fly on every page load and it’s not desirable.

    One solution would be to make exceptions for certain pages / plugins that are having non-SEO friendly URL structures like in this instance.

    Can you share with us some examples of pages from your website that are often accessed? I could inspect them and at some point, hopefully, implement a way to make exception for these page formats and have the CSS/JS combine triggering.

    Thread Starter sinclone

    (@sinclone)

    Hi @gabelivan thanks for the prompt reply.

    My site is using WPML to translate any pages to a different language. Because of this there is an addition of language code into the URL for the translated pages. An example will be

    https://homy.sg – in english
    https://homy.sg/?lang=zh-hans – in chinese

    Assets cleanup successfully combined for the english version but skip the chinese due to the parameters. However, it is important for the chinese version to combine as well to improve the speed of the page.

    It would be great if there is an exception to allow combining certain parameters. Example when the parameters is only ?lang=zh-hans with nothing else then it will combine.

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Css and JS not combine with url has parameters’ is closed to new replies.