Welcome to TalkGraphics.com
Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,901

    Lightbulb Re: auto 'refresh' question

    Quote Originally Posted by xtom View Post
    Another thing you could do but might be inconvenient is to use the first page in the design for version/caching control while you're working on the site. So for example name your first page "sitev1" and then have the second page in the design as your index.html. Then when you publish the htm_files folder name will match the filename of your first page so it would be "sitev1_htm_files" and the next time you do a major update change it to "sitev2" which then would create "sitev2_htm_files". You wouldn't want to do it for minor changes but perhaps after a lot of major changes. This would avoid caching issues as all links to file assets would change to the new folder name. Note this wouldn't work with a site navbar set to link to all pages automatically and you would need to manually delete old htm_files folders manually after a while. Normally though I would just get into the habit of telling the customer to Ctrl+F5 to clear cache every time emailing them with significant changes, although if they are previewing on a tablet or mobile it's less straight forward digging around in various browser menus to clear cache.
    Tom, that is a very good approach.

    May I refine it a tad?

    1. Create your website. [Assume first page is index.htm, else change (4.1) to align]
    2. Create a blank page and drag to the first page position.
    3. Rename to version100. [Click the Rename button if Xara complains]
    4. In Web Properties > Page > HTML code (head), add:
      1. <meta http-equiv="refresh" content="0; url=index.htm" />

    5. Publish

    ===============

    1. Version Update:
      1. Rename the first page to the next increment. [version101]

    2. Republish

    ===============

    1. Directory Structure:
      1. Version 100:
        1. version100.htm ==> index.htm
        2. index.htm, using
        3. version100_htm_files/ folder

      2. Version 101:
        1. version101.htm ==> index.htm
        2. version100.htm ==> index.htm
        3. index.htm, using
        4. version101_htm_files/ folder
        5. version100_htm_files/ folder (no longer used)

      3. ​...

    All you, as designer, have to do is rename the first page when making important site changes.
    As a bonus, you can add any design notes and changes to the version page.

    Very clean, easy to implement and maintains a recoverable history.
    Do note, index.htm and all other site pages are always overwritten as their referencing URLs need to point to the latest assets folder.

    At the end of development, move the first page to the end and republish.
    For further development, put last to first and increment.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  2. #2
    Join Date
    May 2002
    Location
    Canada
    Posts
    3,345

    Default Re: auto 'refresh' question

    This deserves a sticky.

  3. #3
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,901

    Default Re: auto 'refresh' question

    Quote Originally Posted by behzad View Post
    This deserves a sticky.
    behzad, it's been 'nugget'ed and the Sticky has a link to it.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

 

 

Tags for this Thread

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
  •