Showing posts with label HTTPS. Show all posts
Showing posts with label HTTPS. Show all posts

Wednesday, 7 June 2017

Serving dynamic content with Cloud Functions on Firebase Hosting

Michael Bleigh
Michael Bleigh
Engineer, Firebase Hosting

Three years ago, we launched Firebase Hosting to make it easier for developers to deliver fast, engaging experiences on the web. Two months ago, we launched the beta of Cloud Functions for Firebase to let developers write custom backend logic without having to worry about servers or infrastructure. More recently at Google I/O, we brought Firebase Hosting and Cloud Functions together to provide a flexible set of tools to build Progressive Web Apps with world-class scale and performance.

You can connect an HTTPS Cloud Function to your Firebase Hosting app by adding a rewrite to the firebase.json configuration for your project:


{
"hosting": {
"rewrites": [
{"source": "/function/**", "function":"myFunction"}
]
}
}

Once connected, matching requests seamlessly proxy to your Cloud Function (in the example above, a function named myFunction). This one-line change enables exciting new capabilities for Firebase Hosting users including:

  1. Server-Side Rendering. Until now, Firebase Hosting has only served static content. Now you can serve dynamic content using industry-standard libraries like Express, while still leveraging a lightning-fast global CDN cache.
  2. Custom APIs. With Cloud Functions and Firebase Hosting, you can create custom API endpoints on your own domain, avoiding the overhead of cross-origin requests. Plus, with a few extra lines of code you can authorize your endpoints through Firebase Auth.
  3. User-Generated Web Content. For the first time, Firebase Hosting can generate content compatible with AMP, Twitter Cards, and more without requiring a deploy. This means your Firebase Hosting apps can be more shareable and more searchable than ever before.

For Cloud Functions users, you can now run functions on an SSL-secured custom domain and get powerful caching to avoid unnecessary executions.

To get started using Cloud Functions on Firebase Hosting for your own Firebase project, take a look at our documentation. You can also learn more in our I/O session: Building Fast Web Experiences with Firebase Hosting.

Share:

Sunday, 29 January 2017

Activate Free SSL Certificate for Your Website

Anyone who wants to increase performance and security of your web page, I suggest to have Cloudflare setup in your DNS system. I have posted few articles to install paid SSL certificate for your web page, all which needs your complete support to maintain. But, Cloudflare provides free SSL certificates with a limited access (which is enough for any website) and it takes care most of the support that your web page needs. Most importantly, nowadays Google is providing better preferences for the web pages which has HTTPs as the protocol and more chances for your web page to appear on Google search.

Activate Free SSL Certificate for Your Website

Read more »
Share:

Sunday, 11 December 2016

COMODO SSL Certificate Installation with A+ Rating

SSL(Secure Sockets Layer) certificate is must for any e-commerce or data based applications. Because, nowadays to run any social applications like Google or Facebook, SSL/HTTPS URL is must to get geo location or any map related stuff. Long time back, I have already discussed with the installation of SSL certificate. But, I missed few configuration settings to get A+ rating for the website. A+ rating helps in standard approval for the website to work smoothly in all and any platform.

COMODO SSL Certificate Installation A+ Rating.

Read more »
Share: