Images not put in cache

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Stephane

    Images not put in cache

    Hi,

    All images on my ASP.Net web site are reloaded almost each time I visit a
    page. My chache setting on IE is set to Automatically. When I visit another
    web site, images are rarely reloaded so it's fast. This slows down my site
    and it's really a pain in the neck.

    All my web pages are dynamic and are built from a database. There no meta
    field or Response.Expire s...

    So I was wondering if ASP.Net has something to do with this? How can I force
    images to be put in cache?

    Test by yourself to see what I'm talking about: http://www.nuouz.com

    Thanks for any help

    Stephane




  • Roy

    #2
    Re: Images not put in cache

    Hi Stephanie,

    If you're using the 2.0 framework, then you're experiencing the same bug
    I've been dealing with for a couple months (since we upgraded). I've
    tried everything, ranging from setting NO content expiration date in IIS
    to hardcoding cache settings in the web code, all to no avail.

    I really do chalk it up to a bug, though it seems to be a sporadic one
    as not all folks seem to have this problem. Could be an interaction bug
    between 2.0 framework and web server?

    -Roy

    *** Sent via Developersdex http://www.developersdex.com ***

    Comment

    • Stephane

      #3
      RE: Images not put in cache

      Could that be because the view state field? That's the only thing that I see
      changing in all my pages.

      Thanks

      Stephane

      "Stephane" wrote:
      [color=blue]
      > Hi,
      >
      > All images on my ASP.Net web site are reloaded almost each time I visit a
      > page. My chache setting on IE is set to Automatically. When I visit another
      > web site, images are rarely reloaded so it's fast. This slows down my site
      > and it's really a pain in the neck.
      >
      > All my web pages are dynamic and are built from a database. There no meta
      > field or Response.Expire s...
      >
      > So I was wondering if ASP.Net has something to do with this? How can I force
      > images to be put in cache?
      >
      > Test by yourself to see what I'm talking about: http://www.nuouz.com
      >
      > Thanks for any help
      >
      > Stephane
      >
      >
      >
      >[/color]

      Comment

      • Roy

        #4
        RE: Images not put in cache

        Possibly. I don't see how, but possibly.
        I've pretty much been forced to eliminate all but the most essential
        imagery from my work sites (which fortunately don't need to be all that
        "pretty" to begin with given the user-base, but still).



        RE: Images not put in cache
        From: Stephane

        Could that be because the view state field? That's the only thing that I
        see
        changing in all my pages.

        Thanks

        Stephane

        *** Sent via Developersdex http://www.developersdex.com ***

        Comment

        • Raymond

          #5
          Re: Images not put in cache

          They're being cached here okay. Though looks like several
          of them are dynamic images referencing aspx files. The browser
          can't cache these normally. It goes by URL, so it's going to call aspx
          files each time and run them to get another stream.

          Is your client computer date set right?

          Another reason it may be slower is that you have too many
          object references. Even when they load of the cache the
          browser still needs to make a connection for each and
          determine whether it needs to use the cache or re-load.
          This can be expensive, especialy if the site is served from
          a very distant location, nothing to do with ASP.NET here.
          Looks like this is hosted somehwere in SoCal, so if it's being
          used by someone in Europe it's going to be slow. For that
          you need to reduce the number of object references to get
          it rendered there faster.




          "Stephane" <Stephane@discu ssions.microsof t.com> wrote in message
          news:D00E853E-82F4-482C-B089-9984BB6C51DD@mi crosoft.com...[color=blue]
          > Hi,
          >
          > All images on my ASP.Net web site are reloaded almost each time I visit a
          > page. My chache setting on IE is set to Automatically. When I visit[/color]
          another[color=blue]
          > web site, images are rarely reloaded so it's fast. This slows down my site
          > and it's really a pain in the neck.
          >
          > All my web pages are dynamic and are built from a database. There no meta
          > field or Response.Expire s...
          >
          > So I was wondering if ASP.Net has something to do with this? How can I[/color]
          force[color=blue]
          > images to be put in cache?
          >
          > Test by yourself to see what I'm talking about: http://www.nuouz.com
          >
          > Thanks for any help
          >
          > Stephane
          >
          >
          >
          >[/color]


          Comment

          • Stephane

            #6
            Re: Images not put in cache

            Hi,

            Thanks for your answer.

            What do you mean by "you need to reduce the number of object references to get
            it rendered there faster."? What is an object reference?

            Thanks

            Stephane

            "Raymond" wrote:
            [color=blue]
            > They're being cached here okay. Though looks like several
            > of them are dynamic images referencing aspx files. The browser
            > can't cache these normally. It goes by URL, so it's going to call aspx
            > files each time and run them to get another stream.
            >
            > Is your client computer date set right?
            >
            > Another reason it may be slower is that you have too many
            > object references. Even when they load of the cache the
            > browser still needs to make a connection for each and
            > determine whether it needs to use the cache or re-load.
            > This can be expensive, especialy if the site is served from
            > a very distant location, nothing to do with ASP.NET here.
            > Looks like this is hosted somehwere in SoCal, so if it's being
            > used by someone in Europe it's going to be slow. For that
            > you need to reduce the number of object references to get
            > it rendered there faster.
            >
            >
            >
            >
            > "Stephane" <Stephane@discu ssions.microsof t.com> wrote in message
            > news:D00E853E-82F4-482C-B089-9984BB6C51DD@mi crosoft.com...[color=green]
            > > Hi,
            > >
            > > All images on my ASP.Net web site are reloaded almost each time I visit a
            > > page. My chache setting on IE is set to Automatically. When I visit[/color]
            > another[color=green]
            > > web site, images are rarely reloaded so it's fast. This slows down my site
            > > and it's really a pain in the neck.
            > >
            > > All my web pages are dynamic and are built from a database. There no meta
            > > field or Response.Expire s...
            > >
            > > So I was wondering if ASP.Net has something to do with this? How can I[/color]
            > force[color=green]
            > > images to be put in cache?
            > >
            > > Test by yourself to see what I'm talking about: http://www.nuouz.com
            > >
            > > Thanks for any help
            > >
            > > Stephane
            > >
            > >
            > >
            > >[/color]
            >
            >
            >[/color]

            Comment

            • Raymond

              #7
              Re: Images not put in cache

              Images, script files, all those aspx references, global style sheets,
              all those are object references for which the browser needs to
              make connections.

              "Stephane" <Stephane@discu ssions.microsof t.com> wrote in message
              news:C40942BE-A6BF-4783-92C8-6B0DA5181A18@mi crosoft.com...[color=blue]
              > Hi,
              >
              > Thanks for your answer.
              >
              > What do you mean by "you need to reduce the number of object references to[/color]
              get[color=blue]
              > it rendered there faster."? What is an object reference?
              >
              > Thanks
              >
              > Stephane
              >
              > "Raymond" wrote:
              >[color=green]
              > > They're being cached here okay. Though looks like several
              > > of them are dynamic images referencing aspx files. The browser
              > > can't cache these normally. It goes by URL, so it's going to call aspx
              > > files each time and run them to get another stream.
              > >
              > > Is your client computer date set right?
              > >
              > > Another reason it may be slower is that you have too many
              > > object references. Even when they load of the cache the
              > > browser still needs to make a connection for each and
              > > determine whether it needs to use the cache or re-load.
              > > This can be expensive, especialy if the site is served from
              > > a very distant location, nothing to do with ASP.NET here.
              > > Looks like this is hosted somehwere in SoCal, so if it's being
              > > used by someone in Europe it's going to be slow. For that
              > > you need to reduce the number of object references to get
              > > it rendered there faster.
              > >
              > >
              > >
              > >
              > > "Stephane" <Stephane@discu ssions.microsof t.com> wrote in message
              > > news:D00E853E-82F4-482C-B089-9984BB6C51DD@mi crosoft.com...[color=darkred]
              > > > Hi,
              > > >
              > > > All images on my ASP.Net web site are reloaded almost each time I[/color][/color][/color]
              visit a[color=blue][color=green][color=darkred]
              > > > page. My chache setting on IE is set to Automatically. When I visit[/color]
              > > another[color=darkred]
              > > > web site, images are rarely reloaded so it's fast. This slows down my[/color][/color][/color]
              site[color=blue][color=green][color=darkred]
              > > > and it's really a pain in the neck.
              > > >
              > > > All my web pages are dynamic and are built from a database. There no[/color][/color][/color]
              meta[color=blue][color=green][color=darkred]
              > > > field or Response.Expire s...
              > > >
              > > > So I was wondering if ASP.Net has something to do with this? How can I[/color]
              > > force[color=darkred]
              > > > images to be put in cache?
              > > >
              > > > Test by yourself to see what I'm talking about: http://www.nuouz.com
              > > >
              > > > Thanks for any help
              > > >
              > > > Stephane
              > > >
              > > >
              > > >
              > > >[/color]
              > >
              > >
              > >[/color][/color]


              Comment

              Working...