문제

If I have a static object (file), which being requested by clients via HTTPS - is it possible to cache the file after encryption took place? (for the purpose of saving the processing time of encrypting for each and every client upon request)

Note: I'm not asking how to do it, but rather if it's even possible.

도움이 되었습니까?

해결책

No. The encryption keys generated by SSL/TLS will be different for each connection. One component of the key-derivation is a client-generated nonce, so the server has no way of pre-calculating the key.

다른 팁

By sending Cache-Control: public many browsers will cache content even if it is sent over SSL.

IE, and FF3+ should respect this.

EDIT: Sorry misread the question. You can also store content after encryption using some sort of proxy server.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top