Today I learned about curl_exec which is a HTTP client for use in PHP.
Tag Archives: http
HTTP Caching in Mozilla
Turned up this old document about HTTP Caching in Mozilla.
HTTP cache control headers
I had to do two things today. One was to make sure that in production all of my resources were cached. The other was to make sure that in development none of my resources were cached. I ended up with these two functions, which seem to be doing the trick to disable/enable caching:
function set_nocache() { header("Expires: Tue, 03 Jul 2001 06:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); } function set_cache() { header('Expires: ' . gmdate( 'D, d M Y H:i:s', time()+31536000 ) . ' GMT'); header('Cache-Control: max-age=31536000'); }
Reference: Completely disable any browser caching.
HTTP request methods
I wanted a complete list of the HTTP methods and I found them over here. They are:
- HEAD
- GET
- POST
- PUT
- DELETE
- TRACE
- OPTIONS
- CONNECT
- PATCH
HTTP Content Negotiation in Apache
Reading about HTTP Content Negotiation support in Apache.
Apache and SSL (HTTPS)
According to NameBasedSSLVHosts it’s possible to configure Apache so that it supports both SSL and name based virtual hosts. There’s notes on another method at HTTPS Virtual Hosts in Apache.
In other news: on my reading list is the SSL/TLS Strong Encryption: FAQ.
Page Speed – Browser Caching
Page Speed is telling me to leverage browser caching.