Download files through SSL protocol

When my Tomcat webapp became secured on port 8443 through SSL protocol, I discovered that file download was impossible (while still working on port 8080), no matter what the navigator was. Here is the reason why:
response.setHeader(“Cache-control”,”no-cache”);
The above line has now been replaced by:
response.setHeader(“Cache-control”,”private“);
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: