Skip to content

Instantly share code, notes, and snippets.

@gamerson
Created January 9, 2024 19:59
Show Gist options
  • Save gamerson/cec4883049457e81641d6d69fde28f81 to your computer and use it in GitHub Desktop.
Save gamerson/cec4883049457e81641d6d69fde28f81 to your computer and use it in GitHub Desktop.
css caching
* Connection #0 to host liferaysampleglobalcss-exti4f5cloudstaging-extuat.lfr.st left intact
➜ ~ (⎈|teleport.liferay.st-liferaycloud-engtools-nonprd_us-west1-engtools-c1:sonarqube-system) curl -v https://liferaysampleglobalcss-exti4f5cloudstaging-extuat.lfr.st/global.css
* Trying 34.120.216.92:443...
* Connected to liferaysampleglobalcss-exti4f5cloudstaging-extuat.lfr.st (34.120.216.92) port 443 (#0)
* ALPN: offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
* CAfile: /etc/ssl/cert.pem
* CApath: none
* (304) (IN), TLS handshake, Server hello (2):
* (304) (IN), TLS handshake, Unknown (8):
* (304) (IN), TLS handshake, Certificate (11):
* (304) (IN), TLS handshake, CERT verify (15):
* (304) (IN), TLS handshake, Finished (20):
* (304) (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / AEAD-AES256-GCM-SHA384
* ALPN: server accepted h2
* Server certificate:
* subject: CN=liferay.st
* start date: Aug 14 00:00:00 2023 GMT
* expire date: Aug 13 23:59:59 2024 GMT
* subjectAltName: host "liferaysampleglobalcss-exti4f5cloudstaging-extuat.lfr.st" matched cert's "*.lfr.st"
* issuer: C=GB; ST=Greater Manchester; L=Salford; O=Sectigo Limited; CN=Sectigo RSA Domain Validation Secure Server CA
* SSL certificate verify ok.
* using HTTP/2
* h2 [:method: GET]
* h2 [:scheme: https]
* h2 [:authority: liferaysampleglobalcss-exti4f5cloudstaging-extuat.lfr.st]
* h2 [:path: /global.css]
* h2 [user-agent: curl/8.1.2]
* h2 [accept: */*]
* Using Stream ID: 1 (easy handle 0x7ff59600ca00)
> GET /global.css HTTP/2
> Host: liferaysampleglobalcss-exti4f5cloudstaging-extuat.lfr.st
> User-Agent: curl/8.1.2
> Accept: */*
>
< HTTP/2 200
< accept-ranges: bytes
< access-control-allow-headers: *
< access-control-allow-methods: GET,OPTIONS,POST
< content-length: 93
< server: Caddy
< via: 1.1 google
< date: Tue, 09 Jan 2024 18:40:18 GMT
< last-modified: Tue, 19 Sep 2023 16:31:22 GMT
< etag: "s18r8a2l"
< content-type: text/css; charset=utf-8
< age: 1539
< cache-control: public,max-age=3600
< alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
<
.logo::after {
color: #0054f0;
content: 'Liferay Sample Global CSS';
margin-left: 2rem;
}
* Connection #0 to host liferaysampleglobalcss-exti4f5cloudstaging-extuat.lfr.st left intact
➜ ~ (⎈|teleport.liferay.st-liferaycloud-engtools-nonprd_us-west1-engtools-c1:sonarqube-system) curl -v https://liferaysampleglobalcss-exti4f5cloudstaging-extuat.lfr.st/global.css
* Trying 34.120.216.92:443...
* Connected to liferaysampleglobalcss-exti4f5cloudstaging-extuat.lfr.st (34.120.216.92) port 443 (#0)
* ALPN: offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
* CAfile: /etc/ssl/cert.pem
* CApath: none
* (304) (IN), TLS handshake, Server hello (2):
* (304) (IN), TLS handshake, Unknown (8):
* (304) (IN), TLS handshake, Certificate (11):
* (304) (IN), TLS handshake, CERT verify (15):
* (304) (IN), TLS handshake, Finished (20):
* (304) (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / AEAD-AES256-GCM-SHA384
* ALPN: server accepted h2
* Server certificate:
* subject: CN=liferay.st
* start date: Aug 14 00:00:00 2023 GMT
* expire date: Aug 13 23:59:59 2024 GMT
* subjectAltName: host "liferaysampleglobalcss-exti4f5cloudstaging-extuat.lfr.st" matched cert's "*.lfr.st"
* issuer: C=GB; ST=Greater Manchester; L=Salford; O=Sectigo Limited; CN=Sectigo RSA Domain Validation Secure Server CA
* SSL certificate verify ok.
* using HTTP/2
* h2 [:method: GET]
* h2 [:scheme: https]
* h2 [:authority: liferaysampleglobalcss-exti4f5cloudstaging-extuat.lfr.st]
* h2 [:path: /global.css]
* h2 [user-agent: curl/8.1.2]
* h2 [accept: */*]
* Using Stream ID: 1 (easy handle 0x7fee7500a800)
> GET /global.css HTTP/2
> Host: liferaysampleglobalcss-exti4f5cloudstaging-extuat.lfr.st
> User-Agent: curl/8.1.2
> Accept: */*
>
< HTTP/2 200
< access-control-allow-headers: *
< access-control-allow-methods: GET,OPTIONS,POST
< content-length: 71
< server: Caddy
< via: 1.1 google
< date: Tue, 09 Jan 2024 19:54:22 GMT
< last-modified: Tue, 09 Jan 2024 18:47:34 GMT
< etag: "s70c7a1z"
< content-type: text/css; charset=utf-8
< age: 29
< cache-control: public,max-age=3600
< alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
<
.logo::after {
color: #0054f0;
content: '123';
margin-left: 2rem;
}
* Connection #0 to host liferaysampleglobalcss-exti4f5cloudstaging-extuat.lfr.st left intact
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment