Skip to content

Instantly share code, notes, and snippets.

@jasperf
Created December 16, 2024 02:05
Show Gist options
  • Save jasperf/26518fc90696d0f91f12c0e18a1547a6 to your computer and use it in GitHub Desktop.
Save jasperf/26518fc90696d0f91f12c0e18a1547a6 to your computer and use it in GitHub Desktop.
Check for expire headers and cache control for one single page
for url in $(curl -s https://autentical.nl/hoe-krijg-je-kaartjes-voor-de-caminito-del-rey/ | \
grep -Eo '(http|https)://[^"]+\.(js|css|jpg|jpeg|png|gif|woff|woff2|ttf|svg|eot)'); do
echo "Checking: $url"
curl -sI "$url" | grep -Ei 'cache-control|expires'
done
Checking: https://autentical.nl/wp-content/plugins/wd-google-maps/css/bootstrap.css
cache-control: max-age=31536000, public
expires: Tue, 16 Dec 2025 01:31:36 GMT
Checking: https://autentical.nl/wp-content/plugins/wd-google-maps/css/frontend_main.css
cache-control: max-age=31536000, public
expires: Tue, 16 Dec 2025 01:31:36 GMT
Checking: https://autentical.nl/wp-content/plugins/wp-post-and-blog-designer/assets/css/wpbd-slick.css
cache-control: max-age=31536000, public
expires: Tue, 16 Dec 2025 02:04:07 GMT
Checking: https://autentical.nl/wp-content/plugins/wp-post-and-blog-designer/assets/css/wpbd-custom.css
cache-control: max-age=31536000, public
expires: Tue, 16 Dec 2025 02:04:08 GMT
Checking: https://autentical.nl/wp-content/themes/base-hotel/style.css
cache-control: max-age=31536000, public
expires: Tue, 16 Dec 2025 02:04:08 GMT
Checking: https://autentical.nl/wp-content/themes/base-hotel-child-theme/public/app.4e4e05a21005b8719151.css
cache-control: max-age=31536000, public
expires: Tue, 16 Dec 2025 02:04:09 GMT
Checking: https://autentical.nl/wp-content/themes/base-hotel-child-theme/style.css
cache-control: max-age=31536000, public
expires: Tue, 16 Dec 2025 02:04:09 GMT
Checking: https://autentical.nl/wp-content/themes/base-hotel/css/colour-green.css
cache-control: max-age=31536000, public
expires: Tue, 16 Dec 2025 02:04:09 GMT
Checking: https://autentical.nl/wp-content/themes/base-hotel/css/pattern-none.css
cache-control: max-age=31536000, public
expires: Mon, 15 Dec 2025 12:18:32 GMT
Checking: https://autentical.nl/wp-content/themes/base-hotel/css/layout-full.css
cache-control: max-age=31536000, public
expires: Tue, 16 Dec 2025 02:04:10 GMT
Checking: https://autentical.nl/wp-content/themes/base-hotel/css/backgrounds.css
cache-control: max-age=31536000, public
expires: Tue, 16 Dec 2025 02:04:11 GMT
Checking: https://autentical.nl/wp-content/themes/base-hotel/css/font-awesome.min.css
cache-control: max-age=31536000, public
expires: Tue, 16 Dec 2025 02:04:12 GMT
Checking: https://autentical.nl/wp-includes/js/jquery/jquery.min.js
cache-control: max-age=2592000, public
expires: Tue, 14 Jan 2025 12:18:32 GMT
Checking: https://autentical.nl/wp-includes/js/jquery/jquery-migrate.min.js
cache-control: max-age=2592000, public
expires: Tue, 14 Jan 2025 12:18:32 GMT
Checking: https://autentical.nl/wp-content/plugins/wd-google-maps/js/init_map.js
cache-control: max-age=2592000, public
expires: Tue, 14 Jan 2025 21:07:10 GMT
Checking: https://autentical.nl/wp-content/plugins/wd-google-maps/js/frontend_main.js
cache-control: max-age=2592000, public
expires: Tue, 14 Jan 2025 21:07:10 GMT
Checking: https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
expires: Sat, 13 Dec 2025 15:20:49 GMT
cache-control: public, max-age=31536000, stale-while-revalidate=2592000
Checking: https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css
cache-control: public, max-age=31919000
Checking: https://widget.getyourguide.com/dist/pa.umd.production.min.js
cache-control: max-age=3600, public, must-revalidate
Checking: https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
expires: Sat, 13 Dec 2025 15:20:49 GMT
cache-control: public, max-age=31536000, stale-while-revalidate=2592000
Checking: https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css
cache-control: public, max-age=31919000
Checking: https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
expires: Sat, 13 Dec 2025 15:20:49 GMT
cache-control: public, max-age=31536000, stale-while-revalidate=2592000
Checking: https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css
cache-control: public, max-age=31919000
Checking: https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
expires: Sat, 13 Dec 2025 15:20:49 GMT
cache-control: public, max-age=31536000, stale-while-revalidate=2592000
Checking: https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css
cache-control: public, max-age=31919000
Checking: https://autentical.nl/wp-content/uploads/sites/42/2024/05/cropped-Baskerville_White_A_512_512-4-32x32.png
cache-control: max-age=10368000, public
expires: Mon, 14 Apr 2025 13:02:11 GMT
Checking: https://autentical.nl/wp-content/uploads/sites/42/2024/05/cropped-Baskerville_White_A_512_512-4-192x192.png
cache-control: max-age=10368000, public
expires: Tue, 15 Apr 2025 02:04:14 GMT
Checking: https://autentical.nl/wp-content/uploads/sites/42/2024/05/cropped-Baskerville_White_A_512_512-4-180x180.png
cache-control: max-age=10368000, public
expires: Tue, 15 Apr 2025 02:04:15 GMT
Checking: https://autentical.nl/wp-content/uploads/sites/42/2024/05/cropped-Baskerville_White_A_512_512-4-270x270.png
cache-control: max-age=10368000, public
expires: Tue, 15 Apr 2025 02:04:15 GMT
Checking: https://autentical.nl/wp-content/uploads/sites/42/2024/11/Baskerville_White_NL_70.png
cache-control: max-age=10368000, public
expires: Tue, 15 Apr 2025 02:04:15 GMT
Checking: https://autentical.nl/wp-content/uploads/sites/42/2014/04/caminito-del-rey-main-bridge_red-1-770x500.jpg
cache-control: max-age=10368000, public
expires: Mon, 14 Apr 2025 21:08:25 GMT
Checking: https://autentical.nl/wp-content/uploads/sites/42/2014/04/caminito-del-rey-main-bridge_red-1.jpg
cache-control: max-age=10368000, public
expires: Tue, 15 Apr 2025 02:04:16 GMT
Checking: 1011w,
Checking: https://autentical.nl/wp-content/uploads/sites/42/2014/04/caminito-del-rey-main-bridge_red-1-300x207.jpg
cache-control: max-age=10368000, public
expires: Tue, 15 Apr 2025 02:04:16 GMT
Checking: 300w,
Checking: https://autentical.nl/wp-content/uploads/sites/42/2014/04/caminito-del-rey-main-bridge_red-1-768x529.jpg
cache-control: max-age=10368000, public
expires: Tue, 15 Apr 2025 02:04:16 GMT
Checking: 768w,
Checking: https://autentical.nl/wp-content/uploads/sites/42/2014/04/caminito-del-rey-main-bridge_red-1-900x620.jpg
cache-control: max-age=10368000, public
expires: Tue, 15 Apr 2025 02:04:17 GMT
Checking: https://autentical.nl/wp-content/uploads/sites/42/2018/10/MMM_billed-201x300.jpg
cache-control: max-age=10368000, public
expires: Mon, 14 Apr 2025 03:19:25 GMT
Checking: https://autentical.nl/wp-content/uploads/sites/42/2018/10/MMM_billed-201x300.jpg
cache-control: max-age=10368000, public
expires: Mon, 14 Apr 2025 03:19:25 GMT
Checking: 201w,
Checking: https://autentical.nl/wp-content/uploads/sites/42/2018/10/MMM_billed-686x1024.jpg
cache-control: max-age=10368000, public
expires: Mon, 14 Apr 2025 03:20:04 GMT
Checking: 686w,
Checking: https://autentical.nl/wp-content/uploads/sites/42/2018/10/MMM_billed-603x900.jpg
cache-control: max-age=10368000, public
expires: Mon, 14 Apr 2025 03:21:27 GMT
Checking: 603w,
Checking: https://autentical.nl/wp-content/uploads/sites/42/2018/10/MMM_billed.jpg
cache-control: max-age=10368000, public
expires: Mon, 14 Apr 2025 03:22:03 GMT
Checking: https://autentical.nl/wp-content/uploads/sites/42/2020/04/kings-path-g92e6ee633_1920.jpg
cache-control: max-age=10368000
expires: Tue, 15 Apr 2025 02:04:18 GMT
Checking: https://autentical.nl/wp-content/uploads/sites/42/2020/04/FB_IMG_1642966753289__01.jpg
cache-control: max-age=10368000
expires: Tue, 15 Apr 2025 02:04:18 GMT
Checking: https://autentical.nl/wp-content/uploads/sites/42/2020/01/caminito-del-Rey-300-225.jpg
cache-control: max-age=10368000, public
expires: Tue, 15 Apr 2025 02:04:18 GMT
Checking: https://autentical.nl/wp-content/uploads/sites/42/2020/01/caminito-del-Rey-300-225.jpg
cache-control: max-age=10368000, public
expires: Tue, 15 Apr 2025 02:04:18 GMT
Checking: https://autentical.nl/wp-content/uploads/sites/42/2020/01/caminito-del-rey-cliffside_red.jpg
cache-control: max-age=10368000, public
expires: Mon, 14 Apr 2025 03:26:19 GMT
Checking: https://autentical.nl/wp-content/uploads/sites/42/2014/04/Tiqets_aw_caminito_del_rey_pendelbus.jpg
cache-control: max-age=10368000, public
expires: Mon, 14 Apr 2025 21:08:26 GMT
Checking: https://autentical.nl/wp-content/uploads/sites/42/2014/04/Tiqets_aw_caminito_del_rey_pendelbus.jpg
cache-control: max-age=10368000, public
expires: Mon, 14 Apr 2025 21:08:26 GMT
Checking: 356w,
Checking: https://autentical.nl/wp-content/uploads/sites/42/2014/04/Tiqets_aw_caminito_del_rey_pendelbus-123x300.jpg
cache-control: max-age=10368000, public
expires: Tue, 15 Apr 2025 02:04:19 GMT
Checking: https://autentical.nl/wp-content/uploads/sites/42/2014/04/Tiqets_aw_caminito_del_rey_kleine_groep.jpg
cache-control: max-age=10368000, public
expires: Mon, 14 Apr 2025 21:08:26 GMT
Checking: https://autentical.nl/wp-content/uploads/sites/42/2014/04/Tiqets_aw_caminito_del_rey_kleine_groep.jpg
cache-control: max-age=10368000, public
expires: Mon, 14 Apr 2025 21:08:26 GMT
Checking: 356w,
Checking: https://autentical.nl/wp-content/uploads/sites/42/2014/04/Tiqets_aw_caminito_del_rey_kleine_groep-123x300.jpg
cache-control: max-age=10368000, public
expires: Tue, 15 Apr 2025 02:04:20 GMT
Checking: https://autentical.nl/wp-content/uploads/sites/42/2020/01/caminito-del-rey-trainline.jpg
cache-control: max-age=10368000, public
expires: Mon, 14 Apr 2025 06:39:17 GMT
Checking: https://autentical.nl/wp-content/uploads/sites/42/2020/01/caminito-del-rey-bridge_red.jpg
cache-control: max-age=10368000, public
expires: Mon, 14 Apr 2025 15:01:31 GMT
Checking: https://autentical.nl/wp-content/uploads/sites/42/2020/01/caminito-del-rey-main-bridge_red.jpg
cache-control: max-age=10368000, public
expires: Mon, 14 Apr 2025 07:42:49 GMT
Checking: https://q-cf.bstatic.com/xdata/images/hotel/square600/222962260.jpg
cache-control: must-revalidate,no-cache,no-store
Checking: https://q-cf.bstatic.com/xdata/images/hotel/square600/222962260.jpg
cache-control: must-revalidate,no-cache,no-store
Checking: https://cf.bstatic.com/xdata/images/hotel/max1024x768/284653801.jpg
cache-control: must-revalidate,no-cache,no-store
Checking: https://autentical.nl/wp-content/uploads/sites/42/2018/03/12.jpg
cache-control: max-age=10368000
expires: Mon, 14 Apr 2025 03:32:51 GMT
Checking: https://r-cf.bstatic.com/xdata/images/hotel/square600/197229115.jpg
cache-control: must-revalidate,no-cache,no-store
Checking: https://autentical.nl/wp-content/themes/base-hotel-child-theme/public/app.f65be5059f269c4cd836.js
cache-control: max-age=2592000, public
expires: Tue, 14 Jan 2025 21:07:10 GMT
Checking: https://autentical.nl/wp-includes/js/jquery/ui/core.min.js
cache-control: max-age=2592000, public
expires: Tue, 14 Jan 2025 12:18:51 GMT
Checking: https://autentical.nl/wp-includes/js/jquery/ui/effect.min.js
cache-control: max-age=2592000, public
expires: Tue, 14 Jan 2025 12:18:51 GMT
Checking: https://autentical.nl/wp-content/themes/base-hotel/js/plugins.js
cache-control: max-age=2592000, public
expires: Tue, 14 Jan 2025 21:07:11 GMT
Checking: https://autentical.nl/wp-content/themes/base-hotel/script.js
cache-control: max-age=2592000, public
expires: Tue, 14 Jan 2025 21:07:11 GMT
Checking: https://autentical.nl/wp-content/themes/base-hotel/js/languages/datepicker-nl.js
cache-control: max-age=2592000, public
expires: Tue, 14 Jan 2025 21:07:11 GMT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment