1. Home
  2. Web Content
  3. Expunging PageSpeed cache

Expunging PageSpeed cache

PageSpeed will make a best effort to expire its asset (.css, .js, .png, .gif, .jpg) cache periodically. During periods of rapid changes, automatic expunction may lag behind changes pushed to a server necessitating a manual flush of the cache.

Expunging PageSpeed cache

A PURGE header may be sent to the asset forcing PageSpeed to expunge its cached copy from memory. For example to accomplish this using cURL from the terminal:

curl -v -X PURGE http://web.site/asset/style.css

To expunge every entry under a common URL or on a web site, use an asterisk:

curl -v -X PURGE http://web.site/asset/*

See also

Updated on July 8, 2019

Was this article helpful?

Related Articles

Need Support?
Can’t find the answer you’re looking for? Don’t worry we’re here to help! If you get an error, visit https://lithiumhosting.com/support instead.
Contact Support