Adding dynamic features to an aggressively cached website
- •Simon Willison uses Claude Code to build dynamic blog features bypassing aggressive caching constraints.
- •Coding agent generates complex Django logic and persistent JavaScript functionality via mobile-based prompts.
- •Implementation leverages browser localStorage to maintain dynamic state without triggering server-side cache misses.
Simon Willison demonstrates how developers can leverage AI coding agents to solve difficult architectural challenges, specifically adding dynamic functionality to websites that rely on aggressive caching. By utilizing Claude Code, an agentic tool for developers, Willison automated the creation of features like conditional admin links and random tag navigation. The core technical challenge involves a site sitting behind Cloudflare, where content is cached for 15 minutes to survive traffic spikes. To circumvent this, the implementation relies on localStorage—a way for browsers to store data locally—to toggle visibility for specific UI elements. This allows the server to continue serving static files while the client-side JavaScript handles the logic. The development process highlights the power of modern LLM-based tools. Willison used natural language prompts to instruct his Coding Agent to build backend endpoints using Common Table Expressions for efficient database querying. The agent even generated the necessary testing loops and Bash commands, showcasing how agentic workflows are shifting from simple code completion to full-task execution. This workflow exemplifies the evolving relationship between developers and AI, where complex state management and infrastructure constraints are navigated through high-level orchestration rather than manual boilerplate coding.