sebsauvage / ZeroBin

A minimalist, opensource online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted in the browser using 256 bits AES.
http://sebsauvage.net/wiki/doku.php?id=php:zerobin
952 stars 213 forks source link

Force no-cache #94

Closed Salokyn closed 9 years ago

Salokyn commented 9 years ago

I use nginc proxy-cache on my web server. Though ZeroBin should not be cashed because deleted messages will continue to be available till the cache expires. Could you add some headers to control cashing like those :

header("Cache-Control: no-cache, no-store, must-revalidate"); // HTTP 1.1. header("Pragma: no-cache"); // HTTP 1.0. header("Expires: 0"); // Proxies.

elrido commented 9 years ago

FYI: In the current release of the fork we provide these headers in the HTML output.

Salokyn commented 9 years ago

Thank you ! I will upgrade to this new version.