Recover file edits and resolve conflicts
Site file revisions prevent an older editing session from silently overwriting newer saved code. A local draft, the server’s saved draft and a published immutable version are different states. Resolve a conflict deliberately rather than treating a refresh as a merge.
Before you start
Section titled “Before you start”- Keep the affected file open and copy important unsaved code to a private recovery location. Record the file identity and current error.
-
Read the editor’s saved, dirty, busy or conflict state. Finish one save before starting another action. A failed request does not prove that the server accepted or rejected every earlier request.
-
If a revision conflict occurs, preserve your local source before reloading the server version. Compare both copies and reapply only the intended changes against the latest revision. Avoid repeatedly resubmitting stale revision data.
-
When recovery is offered after reopening, confirm its file and website identity. Restore only the matching draft, then inspect source and settings before saving. Discard is appropriate only when you intentionally abandon those local changes.
-
Save the reconciled source and test Preview. Review and publish the required version separately. Existing published URLs remain immutable, so recovery should create a reviewed new publication instead of editing old asset bytes.
Check the result
Section titled “Check the result”- The latest saved revision contains the intended combined change and the public page uses the reviewed version.
Troubleshooting
Section titled “Troubleshooting”If loading or permission fails during recovery, keep your local copy and resolve access first. Do not paste private code into a public issue or assume that the browser recovery buffer is an operational backup.
Related guides
Section titled “Related guides”- Create shared CSS and JavaScript files
- Recover drafts and review publication history
- Back up, upgrade and restore safely
Applies to Strukt c02552848c92 · 2026-10-31