Fix Windows Update 504 Gateway Timeout: Network Troubleshooting Guide - Clear Windows Defender Cache Using a Tool-Fix DNS Issues in Microsoft Store After Windows Update

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.