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?

    Thanks.

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

    (@macmanx)

    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)
  • The topic ‘Why are js and css files being 301 redirected?’ is closed to new replies.