22 min read

Site Builder: Autosave and Save Conflicts

How the site builder saves your work automatically, what the toolbar save messages mean, and what to do when the site was saved from another tab or by another person: the conflict dialog, set-aside copies and publishing.

The site builder saves your work for you as you edit. You never press a Save button. To open it, go to Hosting, open Hosted Apps, open your site and click Edit in Builder. This page explains the save messages in the toolbar, what happens when the same site is saved from two places at once (two tabs of yours, or you and a teammate), and how to bring back the version you set aside.

How autosave works

About 1.5 seconds after you stop editing, the builder saves the whole site to your account. If nothing changed since the last save, it does nothing. Saving the site is separate from Publish: autosave keeps your working copy safe, and your live site only changes when you click Publish.

Leaving the editor (including with your browser's Back button) sends any edit made in the last moment before you go, so a change is not lost just because you left quickly. This is skipped while the save status shows a conflict, a stale warning, or a failed or too-large save, because those saves cannot succeed.

The save message in the toolbar

The editor toolbar shows the state of your last save. Long messages are cut short to fit; hover over the message to read the full sentence.

MessageWhat it meansWhat to do
(nothing shown)No save has happened yet in this session.Nothing.
Saving…A save is in progress.Wait a moment.
All changes savedThe latest edits are stored.Nothing.
Save failed — retrying…The last attempt failed (for example a network blip). The builder retries by itself, waiting 2 seconds, then 4, 8 and so on, never more than 60 seconds between tries.Nothing yet. Keep your connection on.
Save failed — changes are stored locallyFive attempts in a row failed, so automatic retries stopped. Your edits are kept in this browser. A Retry button appears next to the message.Fix your connection, then click Retry. Do not publish until the message turns to All changes saved.
We couldn't save your changes — your site is too large. Try removing some large images, then retry.The site is too big for the server to accept. Retrying the same content would fail again, so it does not retry on a timer. A Retry button appears.Remove some large images, then click Retry (or just keep editing, which starts a fresh attempt; the same applies after a failed save).
This site was edited in another session. Reload to get the latest version before continuing.The site changed elsewhere and the builder cannot save over it. A Reload button appears.Click Reload to load the latest saved version.
Not saved – conflictAnother session saved this site first. Autosave is paused. A Resolve button appears. Hovering shows the full sentence, Not saved – another session saved first.Click Resolve and choose a version (see below).

When the site was saved from another session

A conflict happens when two sessions start from the same saved version of the site and both edit it. Whichever session saves first wins that save. The other session is told it was overtaken instead of silently replacing the first one's work. Typical causes: the site open in two tabs, the site open on two computers, or a teammate editing the same site.

When your session is the one that was overtaken, the builder:

  1. pauses autosave (nothing further is sent to the server),
  2. changes the toolbar message to Not saved – conflict with a Resolve button, and
  3. opens a dialog titled This site was saved from another session.

Your edits stay on screen. Nothing is lost at this point.

The conflict dialog

The dialog explains that someone (or another tab of yours) saved a newer version while you were editing, that autosave is paused until you choose, and that neither version is lost: the one you set aside is kept on this device. It offers three buttons.

Use the newer version

Loads what the other session saved and replaces what is on your screen with it. If you have made edits since your last save, they are first copied to this device so you can bring them back, and the banner described below appears. If you have not edited anything since your last save, there is nothing to set aside: the builder just loads the newer version and no new copy is made (the banner still shows any copies set aside earlier). After it finishes, the toolbar shows All changes saved.

Keep my version

Makes your edits the saved site. The builder first fetches the other session's latest version and copies it to this device, then saves your version on top. The other session's version stays recoverable from the banner described below.

Decide later

Closes the dialog and changes nothing. Autosave stays paused and the toolbar keeps showing Not saved – conflict. Click Resolve in the toolbar whenever you are ready to reopen the dialog. You can also press Escape or click outside the dialog, which does the same as Decide later.

While a choice is being processed, all the buttons in the dialog are disabled.

When the conflict comes from a template

The three-button dialog above is for an ordinary save conflict, where autosave of your own edits was rejected. The same dialog title, This site was saved from another session, also opens when applying a template from the gallery, or clicking Undo template, is rejected because another session saved first. In that case the wording and buttons change:

Raised byDialog saysButtons
Applying a templateThe template was not applied. The site was saved from another session while you were choosing it, so your editor is out of date.Use the newer version, Decide later
Undo templateThe template was not undone. The site was saved from another session in the meantime, so the Undo offer is gone.Use the newer version, Decide later

When applying a template is what triggers the dialog, the template wizard closes at the same time, so only the dialog is on screen and the red Couldn't apply this template. Try again. box does not appear.

Keep my version is not offered, because the page on your screen is the one from before the template, and saving it would overwrite the other session's work without applying the template. To recover:

Click Use the newer version

Loads what the other session saved. If you had unsaved edits, they are copied to this device first and can be restored from the banner described below. If you had not edited anything since your last save, the builder just loads the newer version and no new copy is made.

Apply the template again (apply conflicts only)

Reopen the template gallery, choose the template and click Create site. After an Undo template conflict the Undo offer is gone for good, so there is nothing further to click.

Decide later behaves as before: the dialog closes, autosave stays paused, and Resolve in the toolbar reopens it. For the full template steps see Site Builder: Starting from a Template.

Applying a template or clicking Undo template while a save is running

Autosave can be in the middle of saving (the toolbar shows Saving…) at the moment you apply a template or click Undo template. The builder does not race that save:

  • Applying a template waits for the running save to finish, then applies. You no longer get a false This site was saved from another session dialog just because your own autosave was still in flight.
  • Undo template also waits for the running save to finish, then restores your previous design.
  • If the running save itself hits a conflict (a genuine change from another session), the builder stops there: the ordinary three-button This site was saved from another session dialog opens, the template is not applied (or your design is not restored). For an apply, the template wizard also closes.
  • If a conflict is raised, the Undo template offer is withdrawn: it disappears from the editor, and it does not come back after you resolve the conflict.

If the choice cannot be completed

  • Could not keep a copy of the other version on this device, so nothing was changed. Free up browser storage and try again. The builder refuses to discard a version unless it could first keep a copy. The dialog stays open; free up space in your browser and click the button again.
  • Could not load the latest saved version. Check your connection and try again. The builder could not fetch the other session's version. Check your connection and try again.

If yet another session saves in the meantime, you may see the dialog again; repeat the choice.

The set-aside copy banner

After you resolve a conflict, a banner appears above the editor and its toolbar whenever there is at least one set-aside copy. It describes the newest copy:

  • After Use the newer version: A copy of your unsaved edits from the date and time is kept on this device.
  • After Keep my version: A copy of the other session's saved version from the date and time is kept on this device.

The date and time are shown in your browser's own format. The banner is hidden while the toolbar shows Not saved – conflict and returns once you resolve it.

Restore it

Click Restore it on the banner to put that copy back on screen. This is a swap, not a loss: the version currently on screen is copied to this device first, and then the set-aside copy replaces it. Autosave then saves the restored version as the current site, a moment later. Because the swap keeps the version you just left, you can swap back by clicking Restore it on the new banner.

Discard

Click Discard to delete that copy from this device. This cannot be undone. The site on screen and on the server are not touched.

Older copies

If more than one copy is kept, the banner shows a button such as Show 2 older copies (or Show 1 older copy). Click it to list the older ones, each with its own date and time, Restore it and Discard. Click Hide older copies to collapse the list.

How many copies are kept, and where

  • Copies are kept for each site, up to 4 at a time. When a fifth is saved, the oldest is deleted automatically.
  • Copies live only in the browser you used, on this computer. They are not uploaded and are not visible to teammates or on other devices.
  • They survive closing the tab and reloading the page. They are lost if you clear this site's browser data. Copies are kept on a best-effort basis in the browser's own storage; if the browser blocks storage, none are kept.

Do not rely on a set-aside copy as a backup

Copies are a safety net for the moment of a conflict, not a version history. If you need to keep something important, resolve the conflict, restore the copy you want, and let it save. To go back to an earlier saved state of the whole site, use Version history.

Version history

Version history lists the saved versions of your site and lets you put one back. It is a separate tool from the set-aside copies above: versions are kept on the server and are listed for the whole site, while set-aside copies live only in one browser.

Open it

  1. Go to Hosting, open Hosted Apps, open your site and click Edit in Builder.
  2. In the left rail click History (a clock icon; hover to see the name). A panel titled Version history opens next to the rail.
  3. To close it, click History again, click the Close button at the top right of the panel, or press Escape.

The panel is one of the rail's side panels, and only one is open at a time. Opening + Add, Pages, Sitemap, Layers, Assets, Accessibility checker or Global sections closes History, and opening History closes whichever of those was open.

Read the list

Newest versions are at the top. While the list loads you see Loading versions…. Each version shows:

  • A relative time such as "5 minutes ago" or "yesterday" (anything under a minute old reads as "this minute"). Hover over it to see the full date and time.
  • The full date and time, then Version and its number, then its size in KB (a very small version shows as 1 KB).
  • A small tag for why the version was saved: Autosaved, Published (saved when you published), or Before a restore (the safety copy of your site taken just before a restore overwrites it). Any other reason is shown as the raw word the server sent.
  • A Restore button.

Twenty versions load at first. If there are more, a Load more button appears under the list; click it to add the next twenty. If the site has no saved versions yet, the panel says No saved versions yet. Versions appear here as your site is saved and published. If the list cannot be fetched, you see Couldn't load the version history. with a Try again button.

Restore a version

Click Restore on the version you want

The row changes to a confirmation: Restore this version? and Your current site is replaced by this version. You can undo the restore with Undo. Nothing has changed yet.

Click Restore this version

The button reads Restoring… while it works. To back out instead, click Cancel.

Check the result

The panel shows Version restored. Undo brings back your previous site. and the list reloads. The canvas now shows the restored site, and the whole site is replaced, not just the page you are on.

What to know about a restore:

  • It is one Undo step. Press Undo once to bring back the site as it was before the restore. Because the whole site was replaced, the per-page undo history of the other pages is cleared by a restore, so Undo steps you took on those pages earlier are no longer available.
  • It waits for a save. While the toolbar shows Saving…, the Restore buttons are greyed out, and hovering over one shows A save is in progress. Restore is available once it finishes. If a save starts while a confirmation is already open, Restore this version is greyed out and that sentence appears inside the confirmation. Wait for All changes saved, then click again. If you press the button just as a save starts, the restore itself also waits for that save to finish before it runs.
  • Only one at a time. While one restore is running the other Restore buttons are greyed out.
  • Your live site does not change. A restore replaces the working copy in the builder, like any edit. Click Publish when you want visitors to see it.

When a restore fails

MessageWhat happenedWhat to do
Couldn't restore this version. Your site was not changed.The request failed (for example a network problem).The message appears under the version and the confirmation stays open. Check your connection and click Restore this version again.
This version can't be opened by this editor. Your site was not changed.The saved version is in a format this editor cannot read. The builder checks this before it asks the server to restore, so the stored site is left alone.Click Cancel and pick a different version.
The dialog This site was saved from another session opensAnother session saved the site after you opened it, so the restore was refused. The panel also shows Couldn't restore this version. Your site was not changed.See below.

For the third case the dialog says The version was not restored. The site was saved from another session in the meantime, so your editor is out of date. Autosave is paused until you choose. It offers only Use the newer version and Decide later; Keep my version is not offered, for the same reason as with templates (see When the conflict comes from a template). Click Use the newer version, then open History and restore again.

Which versions are kept

Not every save becomes a version. This is why the list is shorter than your editing session:

  • Autosaved versions are taken only once every 10 saves, not on every save. Only the newest 50 are kept; older ones are deleted automatically.
  • Published versions and Before a restore versions are never deleted. A Published version is recorded when you publish, but it is skipped if the saved site has already moved past the version being published (for example, an autosave landed just after you clicked Publish), or if that version already has one. So not every publish leaves a Published entry.

So a version from five minutes ago may not exist, and old Autosaved versions disappear over time. Published versions are not pruned, so they are the longest-lived entries, but see above: one is not guaranteed for every publish.

What version history does not show

  • No author. Versions do not say who saved them, so you cannot tell your own autosave from a teammate's.
  • No preview. You cannot look inside a version before restoring it. Restore, look at the canvas, and press Undo if it is not the one.
  • Not in every editor. The History entry appears only in editors whose host has version history set up, which today is the hosting site builder. The invoice editor, which has a different canvas, does not show it.

Publishing while a conflict is unresolved

Publish is refused while the toolbar shows Not saved – conflict. You will see the message: Your changes are not saved because another session saved first. Resolve the conflict (Keep my version or Use the newer version) before publishing. The reason is that the screen holds a version the server does not, so publishing would ship something that was never saved. Choose a version in the dialog, wait for All changes saved, then publish.

Publish is also refused while the toolbar shows Save failed — retrying…, Save failed — changes are stored locally, or the too-large message, with: Your latest changes couldn't be saved to the server. Retry saving before publishing, or you'll publish an outdated version of your site.

Newer edits on this device when you reopen a site

A related message can appear when you open a site: This device has newer unsynced edits, but the server copy changed since. Which one do you want? It has two buttons, Restore my local draft and Keep server version. While it is showing, autosave is held, the toolbar says Not synced – choose a version, and publishing is refused with a message asking you to choose first. Keep server version discards the draft kept on this device.

Leaving the builder with unsaved changes

The builder warns you before you leave while your latest edit has not reached the server.

  • Closing the tab or reloading. The browser shows its own leave-or-stay prompt while a save is running, a save is waiting to be retried, or the server copy is behind your edits. The prompt disappears once the save lands.
  • Using the exit button. If your last change is still saving, the builder waits briefly and then asks Your last change is still saving. Leave anyway and risk losing it? If the last save attempt failed and is being retried (the toolbar says Save failed — retrying…), it asks at once with that same still saving question. Only after the retries have stopped (Save failed — changes are stored locally) does it ask at once with Your latest changes could not be saved. Leave anyway and lose them? Choose to stay and the builder keeps trying to save.
  • Following another link inside the admin. The same Your last change is still saving. Leave anyway and risk losing it? question appears.

No prompt appears when everything is saved, or in the states that already have their own banner (a conflict, an oversize site, or a pending local-versus-server choice).

The Restored from this device banner

A yellow banner at the top of the editor reading Restored from this device — server copy failed to save means the builder opened the draft saved in this browser because the server copy could not be saved. It has a Dismiss button, and an Import current site instead button when your site has a live deployment to import. Dismissing only hides the banner. Import current site instead replaces the open draft with an import of the live site, so use it only if you do not want the draft kept.

Troubleshooting

Why is Restore greyed out in Version history?

Either a save is in progress (the toolbar shows Saving… and hovering over the button shows A save is in progress. Restore is available once it finishes.) or another restore is running. Wait for All changes saved and try again.

Why is there no History button in the left rail?

The rail only shows History in editors whose host has version history set up, which today is the hosting site builder. The invoice editor, which has a different canvas, does not have it.

I restored the wrong version

Press Undo once. It brings back the site as it was before the restore. If you have already left the editor, open History and restore the Before a restore version nearest the time of the restore: it is the copy of your site taken just before the restore, and it is never deleted.

Why do I see 'another session saved first'?

Someone, or another tab of yours, saved this site after you opened it. Common cases: the same site open in two tabs, a teammate editing it, or an old tab left open from yesterday. Click Resolve and choose. If you do not recognise any other editing, choose Use the newer version: any unsaved edits are kept on this device and you can restore them from the banner.

Why did I see 'This site was saved from another session' when I only have one tab open?

Only a real change can cause it. The usual causes are: the same site is open in another tab, window or computer that saved after you opened it (an old tab left open counts); a teammate edited the site; or your own earlier autosave conflicted with a change from elsewhere. Applying a template or clicking Undo template while your own autosave is still running does not cause it, because the builder waits for that save to finish first. Close the other tabs, click Resolve and choose a version. If you do not recognise any other editing, choose Use the newer version.

Why is Keep my version missing?

The conflict was raised by a template apply or an Undo template, not by ordinary editing. The dialog then says The template was not applied (or The template was not undone) and offers only Use the newer version and Decide later. See When the conflict comes from a template.

Where did my edits go?

  • You chose Use the newer version and had unsaved edits. They were copied to this device. Look for the banner A copy of your unsaved edits from the date and time is kept on this device. and click Restore it. If there are several copies, click Show N older copies (the number varies; it reads Show 1 older copy when there is only one more).
  • You chose Keep my version. Your edits are the saved site. The other session's version is the one set aside.
  • You clicked Discard on a copy. Discarded copies cannot be recovered.
  • More than 4 conflicts happened for this site. The oldest copy was removed automatically.

My set-aside copies are missing on another computer or browser

Copies are stored in the browser where the conflict happened and never leave it. Open the site in that same browser and profile. They are also gone if you cleared the browser's site data or your browser blocks site storage.

The banner is not showing

The banner only appears when a copy exists for this site in this browser, and it is hidden while Not saved – conflict is showing. Resolve the conflict first. If you discarded every copy, no banner appears.

Publish says my changes are not saved

Read the toolbar message. For Not saved – conflict, click Resolve. For Save failed — changes are stored locally, fix your connection and click Retry. For the too-large message, remove large images and click Retry. Publish again once the toolbar shows All changes saved.