Automattic / Automattic/jetpack

Boost: It's possible to create multiple cache files using a script

Open
#41,275 2 comments 0 reactions 0 assignees View on GitHub
[Boost Feature] Optimizations [Boost Feature] Page Cache [Experiment] AI labels added [Feature Group] Other Infrastructure [Plugin] Boost [Pri] Normal
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

Discussed during the weekly meeting.

Since we're using GET parameters + cookies to determine if a URL is cached or not, it is possible to create multiple cache files of the same URL just by changing the value of a cookie.

This can be used to fill the cache directory with unnecessary files.

Contributor guide

Open the contributing guide

Research direction

Start by tracing Boost's cache handling for GET parameters and cookies, then reproduce the issue by changing a cookie value for the same URL. Determine how those changes create separate cache files and verify that unnecessary variants no longer fill the cache directory.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.