1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resources with a "?" are not cached

Discussion in 'XenForo Development Discussions' started by Lindal_Oronar, Dec 29, 2015.

  1. Lindal_Oronar

    Lindal_Oronar Well-Known Member

    I did a test on Gtmetrix

    One of the results for improvement:
    Resources with a "?" in the URL are not cached by some proxy caching servers. Remove the query string and encode the parameters into the URL for the following resources:

    15 issues with a jpg? extension

    Does anyone know how I can solve this
  2. Chris D

    Chris D XenForo Developer Staff Member

    Ignore it, they are essentially incorrect.

    The ? and what follows indicates the upload date of the icon. When the icon changes, the date changes therefore people start seeing the new icon immediately instead of it coming from their cached copy of the icon.

    This is important and applies to avatars too.
    Marcus likes this.
  3. Lindal_Oronar

    Lindal_Oronar Well-Known Member

    Thanks for your answer @Chris D
  4. Lindal_Oronar

    Lindal_Oronar Well-Known Member

  5. batpool52!

    batpool52! Well-Known Member

  6. Lindal_Oronar

    Lindal_Oronar Well-Known Member

    I have no twitter button on my site.
    Can I disable this somewhere?
  7. Chris D

    Chris D XenForo Developer Staff Member

    It looks like it's something that is coming from an add-on or your style:
    <script src="//platform.twitter.com/widgets.js" charset="utf-8"></script><script src="//platform.twitter.com/widgets.js" charset="utf-8"></script><script>$(".twitter-tweet").css("border","1px solid rgb(250, 250, 250)");</script><script>$(".twitter-tweet").css("border-radius","7px");</script><script>$(".twitter-tweet").css("box-shadow","0px 0px 7px 0px rgb(66, 66, 66)");</script><script>$(".twitter-tweet").children("p").css("border-bottom","3px double rgb(250, 250, 250)");</script>
  8. Lindal_Oronar

    Lindal_Oronar Well-Known Member

    Thanks, I think it must be my style because I have no addons for twitter.
  9. Lindal_Oronar

    Lindal_Oronar Well-Known Member

    @Chris D I found it, the addon BB mediasites make this issue.

Share This Page