• P T

    (@pthomson87)


    Hello,

    I’ve been a happy pro user for a while now, but I have a little issue.

    Currently any JS?snippets?are being served from a query string address, and subsequently avoiding my cache on my server, which increases the load.

    This is how it’s being served:

    https://www.example.com/?code-snippets-js-snippets=footer

    Is there a way to write JS files out to an actual file instead so that it can be cached. Like:

    https://www.example.com/js-code-snippets.js

    I can’t understand why this functionality hasn’t been added already, as that’s the standard way to do things in WordPress, or at least in my experience.

    Many thanks and hear from you soon,

    Paul

Viewing 1 replies (of 1 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    Hi Paul,

    Currently, we have this ‘query string’ method set up so that it *is* cached by the browser – by caching, are you hoping to offload the file to a CDN or similar as a further method of optimisation?

    Serving snippets from actual generated flat files is definitely an enhancement we’re hoping to make in the future, but we feel that the current solution is pretty standard with how WordPress serves a lot of its CSS and JS assets.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.