google-cdn

How to create a Google CDN for a GKE service

跟風遠走 提交于 2021-02-06 11:52:19
问题 I've deployed a wordpress site on GKE (kubernetes) and I can access my Site from the internet like this mysite.test.com and works like a charm. Now I want to use Google CDN to accelerate access. I've tried using an Ingress resource but I would like to do it using a Load Balancing on the Networking tab on Google Console. What steps do I need to take? 回答1: I just wrote a post about using the Google CDN with Kubernetes: https://medium.com/@chees/code-cooking-kubernetes-e715728a578c The important

How to create a Google CDN for a GKE service

荒凉一梦 提交于 2021-02-06 11:51:22
问题 I've deployed a wordpress site on GKE (kubernetes) and I can access my Site from the internet like this mysite.test.com and works like a charm. Now I want to use Google CDN to accelerate access. I've tried using an Ingress resource but I would like to do it using a Load Balancing on the Networking tab on Google Console. What steps do I need to take? 回答1: I just wrote a post about using the Google CDN with Kubernetes: https://medium.com/@chees/code-cooking-kubernetes-e715728a578c The important

Set default meta-data for all future uploaded objects in GCP Bucket

房东的猫 提交于 2021-01-29 10:23:50
问题 I would like to know how could I set default meta-data for all future uploaded objects. Am trying to set "Cache-Control:public,max-age=3600" as a header for each object in my bucket hosting a static website. For all the existing objects, I used the guide command to set meta data, although, can't find a way to set it by default for future uploaded objects. P.S., Developers are using GCP console to upload the objects, and I recently realized that when they upload the updated HTML files (which

How to disable google cloud storage bucket list from acl control?

只愿长相守 提交于 2020-01-11 03:16:06
问题 We're using google cloud storage as our CDN. However, any visitors can list all files by typing: http://ourcdn.storage.googleapis.com/ How to disable it while all the files under the bucket is still public readable by default? We previously set the acl using gsutil defacl ch -g AllUsers:READ 回答1: Your defacl looks good. The problem is most likely that for some reason AllUsers must also have READ, WRITE, or FULL_CONTROL on the bucket itself. You can clear those with a command like this: gsutil

Files (jQuery, jQuery UI, prototype) from external server

左心房为你撑大大i 提交于 2020-01-06 07:14:22
问题 If I have to load for example jquery.js file among some (let's tell about 10) other css / js files, what is a better approach? load all from the same server that I have my whole app, or use some external servers, like https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js etc. "Using the google.load() method gives your application high speed and global access to a growing list of the most popular, open-source JavaScript libraries" 回答1: Use Google. There's a good chance this will

What is the difference between the two Google JS client CDN's?

*爱你&永不变心* 提交于 2019-12-21 05:41:14
问题 A) <script src="https://apis.google.com/js/api:client.js"></script> versus B) <script src="https://apis.google.com/js/client.js"></script> The only differnence being the api: before client.js . CDN A is used in the Google Sign-In for Websites docs in the Building a button with a custom graphic section. CDN B is used almost in the Google API Client Library for JavaScript (Beta) docs. They both appear to work interchangeably. 回答1: Short answer: there is no difference Long answer: The Google JS

Public CDN for CKEditor

蓝咒 提交于 2019-12-17 23:26:52
问题 Simple one: Is there any public CDN to load CKEditor like when you load jQuery from Google's CDN? I haven't been able to find any big CDN. I guess I could always hotlink to ckeditor.com's JS file but that's not exactly what optimization means. 回答1: http://cdn.ckeditor.com It is the official CDN for CKEditor , hosted by Amazon CloudFront and with SSL support. More information about using CDN and/or available types of releases can be found on CKEditor CDN Website. 回答2: You can submit it to http

Google.load() of jQuery - doesn't work with DataTables.net

末鹿安然 提交于 2019-12-11 05:47:55
问题 I have web pages (here an example) with the old Google charts API (the old static images) and I'd like to move it to the new Google visualisation charts API. I also use jQuery, jQuery UI, Google JS maps and DataTables.net (all hosted at the Google and Microsoft CDNs): <style type="text/css" title="currentStyle"> @import "/demo_table_jui.css"; @import "https://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/redmond/jquery-ui.css"; </style> <script type="text/javascript" src="https://maps

Conditional javascript require in the asset pipeline

。_饼干妹妹 提交于 2019-12-10 10:57:34
问题 I'm struggling with the asset pipeline. I'm loading dojo from Google CDN putting this in my template: = javascript_include_tag 'http://ajax.googleapis.com/ajax/libs/dojo/1.6.1/dojo/dojo.xd.js', :'data-dojo-config' => %Q(dojoBlankHtmlUrl:'/blank.html', baseUrl: 'assets/', modulePaths: {custom: 'javascripts/modules'}) I just want a fallback to a local version if running locally or if the CDN is down. I thought of doing this: script typeof(dojo) === "undefined" && document.write(unescape('

Conditional javascript require in the asset pipeline

☆樱花仙子☆ 提交于 2019-12-06 09:18:56
I'm struggling with the asset pipeline. I'm loading dojo from Google CDN putting this in my template: = javascript_include_tag 'http://ajax.googleapis.com/ajax/libs/dojo/1.6.1/dojo/dojo.xd.js', :'data-dojo-config' => %Q(dojoBlankHtmlUrl:'/blank.html', baseUrl: 'assets/', modulePaths: {custom: 'javascripts/modules'}) I just want a fallback to a local version if running locally or if the CDN is down. I thought of doing this: script typeof(dojo) === "undefined" && document.write(unescape('%3Cscript src="js/libs/dojo-1.6.1.min.js"%3E%3C/script%3E')); But I don't like it as it works out of the