Support » Fixing WordPress » Why are js and css files being 301 redirected?

  • Hi,

    I’m having an issue with 301 redirects as they relate to js and css file version numbers. For instance, /wp-includes/js/my-file.min.js?ver=4.9.1 redirects to /wp-includes/js/my-file.min.js. We are being asked to prevent the redirect from happening at all, but I’ve had no luck so far.

    Does anyone have any thoughts on this?


Viewing 1 replies (of 1 total)
  • Moderator James Huff


    Volunteer Moderator 🚀

    That’s normal, ?ver=4.9.1 is there to break any caching of earlier versions, but the redirect is intentional because my-file.min.js is the file being loaded.

    Who exactly is asking you to stop the redirects, and why?

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