• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Browser caching

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    #11
    Presumably you want the browser to cache images that haven't changed, but to refresh when they have.

    Assuming you've got some code behind your website, you could try having a setting somewhere with a value that you change when you do a release, that appends to your image paths as a querystring - e.g

    <img src="./images/mypic.jpg?20120703" />

    The change of qs should trigger the cache to refresh.

    Disclaimer - IANNF.

    Comment


      #12
      Cheers. After checking and finding same problem on another PC I renamed the image directory and changed all refs in Inforapide but seen summit like you recommend so that might be another good way next time.
      bloggoth

      If everything isn't black and white, I say, 'Why the hell not?'
      John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

      Comment


        #13
        There's two useful caching check tools here:

        Cacheability Query

        http://redbot.org/


        PS Change image path sorted IE but did not sort Chrome, however, either the query string thing or html to php/htm works for page links so ta for those brill suggestions also!
        Last edited by xoggoth; 6 July 2012, 22:59.
        bloggoth

        If everything isn't black and white, I say, 'Why the hell not?'
        John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

        Comment

        Working...
        X