Skip to content

Instantly share code, notes, and snippets.

@ibnesayeed
Created March 20, 2018 17:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ibnesayeed/0df1e6f3373ff404daa0d5a86b6ee3d4 to your computer and use it in GitHub Desktop.
Save ibnesayeed/0df1e6f3373ff404daa0d5a86b6ee3d4 to your computer and use it in GitHub Desktop.
Twitter tried hard to prevent caching
$ curl -i --silent -H "Accept-Language: ur" https://twitter.com/ | more
HTTP/1.1 200 OK
cache-control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0
content-length: 130455
content-type: text/html;charset=utf-8
date: Tue, 20 Mar 2018 17:35:31 GMT
expires: Tue, 31 Mar 1981 05:00:00 GMT
last-modified: Tue, 20 Mar 2018 17:35:31 GMT
pragma: no-cache
server: tsa_b
set-cookie: fm=0; Expires=Tue, 20 Mar 2018 17:35:22 UTC; Path=/; Domain=.twitter.com; Secure; HTTPOnly
set-cookie: _twitter_sess=BAh7CSIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo%250ASGFzaHsABjoKQHVzZWR7ADoPY3JlYXRlZF9hdGwrCH31ekRiAToMY3NyZl9p%250AZCIlN2RhYjgzZTM3YTEzMzA1ZDk0NzhlYWQ2NDlmYjUyNTI6B2lkIiU2MWQ3%250AMDc2MmYyN2QyOTlkMTNiODMzNzRmMGZmZTA4NA%253D%253D--758e293b595966bfac5fc18f1a93a9a836e93cc5; Path=/; Domain=.twitter.com; Secure; HTTPOnly
set-cookie: personalization_id="v1_DgElpq58TswDMoNPqKE+YA=="; Expires=Thu, 19 Mar 2020 17:35:31 UTC; Path=/; Domain=.twitter.com
set-cookie: guest_id=v1%3A152156733170111162; Expires=Thu, 19 Mar 2020 17:35:31 UTC; Path=/; Domain=.twitter.com
set-cookie: ct0=f4eeb584f5d8f30c2c88b6afbff34aba; Expires=Tue, 20 Mar 2018 23:35:31 UTC; Path=/; Domain=.twitter.com; Secure
status: 200 OK
strict-transport-security: max-age=631138519
x-connection-hash: 2b858d8c0c4b3f6c4bde9acf97ea4bcb
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-response-time: 65
x-transaction: 001c573f0002feae
x-twitter-response-tags: BouncerCompliant
x-ua-compatible: IE=edge,chrome=1
x-xss-protection: 1; mode=block; report=https://twitter.com/i/xss_report
<!DOCTYPE html>
<html lang="ur" data-scribe-reduced-action-queue="true">
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment