How can I add expire headers for scripts that are not on my server?

后端 未结 9 820
我寻月下人不归
我寻月下人不归 2020-12-25 14:03

I have a website and I added the expire headers on all pages/images and scripts but I don’t know how I could add expire headers to external scripts.

For example Goo

9条回答
  •  -上瘾入骨i
    2020-12-25 14:23

    You may be able to add a query string parameter to fool the browser into thinking it's requesting a different resource. For example, if you want the browser to never cache a CSS, you can add a question mark followed by a random number to the end of the URL. This usually works but can be made to not work by the server hosting the file. Try it and see.

提交回复
热议问题