How to Remove the query string and encode the parameters into the URL

4 replies
This is driving me kind of crazy, I searched google and still don't really understand how to do this. I'm trying to speed up my site and I'm getting this warning from speed tests

"To enable proxy caching for these resources, remove query strings from references to static resources, and instead encode the parameters into the file names themselves."

So let's say I had this

http://mysite.com/wp-content/themes/...-bg.jpg?9d7bd4

How would I go about encoding the parameters into the file name?

Thanks
#encode #parameters #query #remove #string #url
  • Profile picture of the author ItsChrissy
    Hi,

    I don't know the answer to your question unfortunately but Google have their own speed checking service now which I believe is pretty new:

    Page Speed Home

    Try that and maybe it would be easier to understand and correct anything that needs correcting?

    Good luck.
    {{ DiscussionBoard.errors[5558169].message }}
  • Profile picture of the author GuerrillaIM
    You would use server side code to do this but I can't see how it would give you any increase in performance.
    {{ DiscussionBoard.errors[5560080].message }}
  • Profile picture of the author LiorN
    what is "cloacking" ? Alex, for 500
    Signature

    Our Actions Proves What We Really Belive In

    {{ DiscussionBoard.errors[5560096].message }}
  • Profile picture of the author GuerrillaIM
    OP, I doubt this will make any difference to the speed your page loads. The message you are getting sounds like a standard message for any dynamic URL. I guess some web proxies are configured not to cache dynamic URLs.


    But to answer your question, if your hosting that wordpress site on linux you will need to use the apache mod rewrite to create a rewrite rule to make dynamic links look like static URLs.
    {{ DiscussionBoard.errors[5562371].message }}

Trending Topics