Images not being cached?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Blind Fool
    Member
    • May 2001
    • 49
    • 3.6.x

    Images not being cached?

    It seems everytime I reload a page the images are reloaded instead of using my cache, whilst this isn't an issue as I am on broadband it is causing people on 56k issues and is hitting my bandwidth.

    Is it possible to ensure the forum uses the PC cache?
    sigpic
  • M1th
    Senior Member
    • Jul 2003
    • 527
    • 3.6.x

    #2
    Indeed, I have the exact same problem.

    I was told that it's to do with my server configuration. But I'm not sure how that is possible. (mod_gzip?)

    and yes.. I have add no cache headers OFF
    Chamber of Secrets - The Ultimate Harry Potter Community!

    Comment

    • M1th
      Senior Member
      • Jul 2003
      • 527
      • 3.6.x

      #3
      ^^^
      Chamber of Secrets - The Ultimate Harry Potter Community!

      Comment

      • eclectica
        Senior Member
        • Sep 2003
        • 334
        • 3.6.x

        #4
        I have the opposite problem when I access the internet from a Kinko's, in that I have trouble refreshing the pages. I wonder what you would see of your site if you went to a Kinko's.

        Comment

        • chas_h
          New Member
          • Jan 2004
          • 24
          • 3.0.0 'Gold'

          #5
          Try this....

          I had a similiar problem at my current host, but it only involved sites running under subdomains. A telltale sign that this was happening was that everytime I tried to right-click and 'save-as' any image (in IE at least) it wanted to save it as a 'bitmap', not .jpg or .gif. This had the effect of causing the whole page to load slowly.
          The fix, on a RH Linux server running Apache, was to add a line to httpd_app.conf file, I have posted the info as I was given it below. If you can get your host to do this for you it should work. Of course a re-start of Apache may be needed. Hope this helps.

          "Here's the fix:
          Edit your httpd_app.conf
          and add this line, verbatim with the trailing colon:

          Header unset Vary:


          Just put it somewhere in the httpd_app.conf, I did it next to the DefaultType text/plain line

          At any rate though what it is, is that subdomains insert an additional header of 'Vary: Host' which trips Internet Explorer up when viewing it. Funny that the bug was fixed in IE 5 supposedly, yet rebroken in IE6 *ho hum*."


          Chas.
          Chas.

          Photography discussion forum
          http://talkphoto.net

          Comment

          • Blind Fool
            Member
            • May 2001
            • 49
            • 3.6.x

            #6
            The problem is I'm not using a subdomain merely a folder on the primary site...
            sigpic

            Comment

            • gorman
              Senior Member
              • Sep 2002
              • 178

              #7
              How can one tell if this is happening?

              Comment

              • M1th
                Senior Member
                • Jul 2003
                • 527
                • 3.6.x

                #8
                Originally posted by chas_h
                I had a similiar problem at my current host, but it only involved sites running under subdomains. A telltale sign that this was happening was that everytime I tried to right-click and 'save-as' any image (in IE at least) it wanted to save it as a 'bitmap', not .jpg or .gif. This had the effect of causing the whole page to load slowly.
                The fix, on a RH Linux server running Apache, was to add a line to httpd_app.conf file, I have posted the info as I was given it below. If you can get your host to do this for you it should work. Of course a re-start of Apache may be needed. Hope this helps.

                "Here's the fix:
                Edit your httpd_app.conf
                and add this line, verbatim with the trailing colon:

                Header unset Vary:


                Just put it somewhere in the httpd_app.conf, I did it next to the DefaultType text/plain line

                At any rate though what it is, is that subdomains insert an additional header of 'Vary: Host' which trips Internet Explorer up when viewing it. Funny that the bug was fixed in IE 5 supposedly, yet rebroken in IE6 *ho hum*."


                Chas.
                Hmm... same here. Images on my site do get saved as bmp (in IE). But I'm not on any subdomains (though I did insert the line just to make sure) and it didnt work.
                Chamber of Secrets - The Ultimate Harry Potter Community!

                Comment

                • Scott MacVicar
                  Former vBulletin Developer
                  • Dec 2000
                  • 13286

                  #9
                  the images saving as bmp is an IE problem.

                  Your cache is full.

                  Microsoft support is here to help you with Microsoft products. Find how-to articles, videos, and training for Microsoft Copilot, Microsoft 365, Windows, Surface, and more.
                  Scott MacVicar

                  My Blog | Twitter

                  Comment

                  • Blind Fool
                    Member
                    • May 2001
                    • 49
                    • 3.6.x

                    #10
                    Thanks Steve, however I am still stumped as to why the forum does not cache images, understandably my users on 56k are moaning about load times
                    sigpic

                    Comment

                    • M1th
                      Senior Member
                      • Jul 2003
                      • 527
                      • 3.6.x

                      #11
                      Originally posted by Scott MacVicar
                      the images saving as bmp is an IE problem.

                      Your cache is full.

                      http://support.microsoft.com/default...b;EN-US;260650
                      hmm, actually, I visited that page a long time ago. I cleared cache and even set the cache storage size to the highest possible value. Still no luck.

                      www.cosforums.com ( <--- check that out, try saving the title image, you'll see what i mean). As I've already said, the images dont get cached either.. :/
                      Chamber of Secrets - The Ultimate Harry Potter Community!

                      Comment

                      • Blind Fool
                        Member
                        • May 2001
                        • 49
                        • 3.6.x

                        #12
                        Right it does indeed seem to be an IE problem with the images not being cached as both Firebird and Opera run fine...
                        sigpic

                        Comment

                        • Princess Nikida
                          Senior Member
                          • Sep 2001
                          • 290

                          #13
                          I believe that I am actually having this problem on this forum... Every other time a page loads, a random previously viewed image will not show up (i.e. - sometime the "new post" indicator, sometimes the "folders" in the breadcrumbs, etc.). They do not show up with the red X's, but just as empty boxes. I check my browsers status, and nothing else is downloading... I right click on the picture, choose show picture, and it magically appears (atleast for a few more page clicks)...

                          I would think that if the images were being cached, I would get a cached copy (if not the real deal) instead of the blank box. Does this sound like what your users are experiencing, or am I experiencing something else?
                          "A man sits with a pretty girl for an hour, it seems like a minute. He sits on a hot stove for a minute, it's longer than any hour. That is relativity." -- Albert Einstein

                          Comment

                          • chas_h
                            New Member
                            • Jan 2004
                            • 24
                            • 3.0.0 'Gold'

                            #14
                            Yes, in my case it was related to a subdomain, but it was also because of how IE was dealing with images, that's why I suggested that fix here. It worked on my server anyway. If you try it be sure to restart Apache, this can be done on a RedHat server by using the command;

                            'service httpd stop'
                            'service httpd start'

                            or

                            'service httpd restart'

                            Chas.
                            Chas.

                            Photography discussion forum
                            http://talkphoto.net

                            Comment

                            • Blind Fool
                              Member
                              • May 2001
                              • 49
                              • 3.6.x

                              #15
                              Having contacted my hosting company regarding the solution chas_h posted the issue has now been resolved although it was only relevant to IE.
                              sigpic

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...