Welcome to TalkGraphics.com
Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Aug 2010
    Posts
    533

    Default Re: Workaround so site viewers don't need to clear cache on update?

    I think I missed a part <body onload="alert('onload');" onunload="">

    StackOverflow - This is because the browser assumes the page is uncacheable if it has a onunload handler (the page has already destroyed everything; why cache it?)

  2. #12
    Join Date
    Sep 2000
    Location
    Bracknell, UK
    Posts
    8,659

    Default Re: Workaround so site viewers don't need to clear cache on update?

    Ah, if the stack overflow comment is true, that's interesting, though I wonder if it just applies to the page HTML and not the content?

    Anyway, good spot.

  3. #13
    Join Date
    Nov 2009
    Location
    Near Spokane, WA, USA
    Posts
    41

    Default Re: Workaround so site viewers don't need to clear cache on update?

    Quote Originally Posted by Drwyd View Post
    "Re-publish changed files only" should solve most problems. Works in XDP7 and I think XDP6. Not sure which other ones had this facility.
    Unfortunately, my server will only accept secure FTP sessions, so I can't take advantage of the built in FTP tool - but thanks for the tip though!

  4. #14
    Join Date
    Jun 2004
    Location
    North Tawton, UK
    Posts
    1,152

    Default Re: Workaround so site viewers don't need to clear cache on update?

    You should not have this problem if you export the HTML properly.

    It's really important that you export into the same folder every time. That allows the program to see what the old graphics names were and to avoid them so that the new HTML never refers to graphics that might be in people's browser caches.

    Phil

  5. #15
    Join Date
    Nov 2009
    Location
    Near Spokane, WA, USA
    Posts
    41

    Default Re: Workaround so site viewers don't need to clear cache on update?

    Quote Originally Posted by PhilM View Post
    You should not have this problem if you export the HTML properly.

    It's really important that you export into the same folder every time. That allows the program to see what the old graphics names were and to avoid them so that the new HTML never refers to graphics that might be in people's browser caches.

    Phil
    Cool, thanks Phil.

  6. #16

    Default Re: Workaround so site viewers don't need to clear cache on update?

    I am exporting to the same folder every time of course,

    The problem goes away after a while but not if the viewer loads the page soon after the page has been re-uploaded.

    I will need to update the site tomorrow night so I will see if I can reproduce an image, I will make sure to have 'Export changed files only' is ticked as well.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •