Current time: 08-24-2019, 02:21 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Caching guide?
06-15-2010, 05:28 AM
Post: #1
Caching guide?
Hi,

I've got a site entirely over https. I would like to be able to enable caching. Is there a good guide you can refer me to for this?

Thanks!
Find all posts by this user
Quote this message in a reply
06-15-2010, 05:34 AM
Post: #2
RE: Caching guide?
Caching + https doesn't make a lot of sense. If you are securing all of your traffic then chances are it is dynamic and contains user specific data. You cannot effectively cache this using normal CDNs or tools like Varnish. You could probably implement a memory level caching system like memcached but beyond that I'm not sure how much of your site you are going to be able to cache.

A few more details would help with any further assessment.
Visit this user's website Find all posts by this user
Quote this message in a reply
06-15-2010, 06:25 AM
Post: #3
RE: Caching guide?
(06-15-2010 05:34 AM)jklein Wrote:  Caching + https doesn't make a lot of sense. If you are securing all of your traffic then chances are it is dynamic and contains user specific data. You cannot effectively cache this using normal CDNs or tools like Varnish. You could probably implement a memory level caching system like memcached but beyond that I'm not sure how much of your site you are going to be able to cache.

A few more details would help with any further assessment.

Our website is fairly dynamic, but we have some images and javascript files which don't change very often, and when they do change the file name changes with it.

I was looking at this post when I was thinking of caching for https:
http://www.webpagetest.org/forums/showth...ight=https

I'm not very familiar with web optimization yet, so thanks for any help!
Find all posts by this user
Quote this message in a reply
06-15-2010, 07:21 AM
Post: #4
RE: Caching guide?
Ah, I thought you were talking about page level caching. You can still cache static content like JS/CSS/images without any problems. There are a couple things you may want to do - number one would be adding cache control headers like that post describes. That will allow your users to cache the content in their browser. Depending on your traffic you may also want to look into a CDN solution like MaxCDN to distribute your content and take some load off of your servers. Hope this helps.
Visit this user's website Find all posts by this user
Quote this message in a reply
06-15-2010, 10:32 PM
Post: #5
RE: Caching guide?
The only tweak you have to do that is specific to https (that I'm aware of) is to set "cache-control: public" in the headers, otherwise IE will not cache static objects over https. The rest should work just like normal http requests with standard Expires settings.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)