---
title: "💭 cURL Command Without Using Cache | Baeldung on Linux"
description: "!https://www.baeldung.com/linux/curl-without-cache#adding-the-pragma-http-header"
date: 2023-08-21
published: true
tags:
  - curl
  - cli
  - thought
template: link
---


<div class="embed-card embed-card-external">
  <a href="https://www.baeldung.com/linux/curl-without-cache#adding-the-pragma-http-header" class="embed-card-link" target="_blank" rel="noopener noreferrer">
    <div class="embed-card-image">
      <img src="https://www.baeldung.com/wp-content/uploads/sites/2/2021/09/Featured-Linux-5.png" alt="cURL Command Without Using Cache | Baeldung on Linux — A quick and practical guide to using curl without cache." loading="lazy">
    </div>
    <div class="embed-card-content">
      <div class="embed-card-title">cURL Command Without Using Cache | Baeldung on Linux</div>
      <div class="embed-card-description">A quick and practical guide to using curl without cache.</div>
      <div class="embed-card-meta">Baeldung on Linux &middot; baeldung.com</div>
    </div>
  </a>
</div>


Busting cache with curl.  I'm not sure how much gets cached by curl, but I have ran into several cases where I am looking for new content and I want to ensure the content is new and no chance of being cached.

This article suggests 3 different techniques.

``` bash
curl -H 'Cache-Control: no-cache, no-store' http://www.example.com
curl -H 'Pragma: no-cache' http://www.example.com
curl http://www.example.com/?xyzzyspoon
```

!!! note

    This post is a <a href="/thoughts/" class="wikilink" data-title="Thoughts" data-description="These are generally my thoughts on a web page or some sort of url, except a rare few don&#39;t have a link. These are dual published off of my..." data-date="2024-04-01">thought</a>. It's a short note that I make
    about someone else's content online <a href="/tags/thoughts/" class="hashtag-tag" data-tag="thoughts" data-count=2 data-reading-time=3 data-reading-time-text="3 minutes">#thoughts</a>
