Skip to main content

Posts

Uncaught (in promise) TypeError: Failed to execute 'Cache' on 'addAll': Request failed

 Error in Service Worker. Uncaught (in promise) TypeError: Failed to execute 'Cache' on 'addAll': Request failed. Main cause of this is typo in one of the filenames/ OR file is not exists that had added to cached_urls. It did not match the name of the real file so I kept getting the error. I Got this issue due to typo in the filename and found it by quickly setting cached_urls to an empty list and found that the error went away.

Advanced SEO - Separate URLs for Mobile and desktop applications

We can configure Separate URLs for Mobile and desktop applications Annotations for desktop and mobile URLs To help Google algorithms understand separate mobile URLs, we recommend using the following annotations: On the desktop page, add a  rel="alternate"  tag pointing to the corresponding mobile URL. This helps Googlebot discover the location of your site's mobile pages. On the mobile page, add a  rel="canonical"  tag pointing to the corresponding desktop URL. google support two methods to have this annotation: in the HTML of the pages themselves and in  sitemaps . For example, suppose that the desktop URL is  http://example.com/page-1  and the corresponding mobile URL is  http://m.example.com/page-1 . The annotations in this example would be as follows. Annotations in the HTML On the desktop page ( http://www.example.com/page-1 ), add the following annotation: <link rel = "alternate" media = "only screen and (max-width: 640px)"   href ...

Plesk - Upgrade the .net Framework to 4.7.2 OR 4.8

 Steps to Upgrade the .net Framework to 4.7.2 OR 4.8 1. First Download the .NET Framework from https://dotnet.microsoft.com/download/dotnet-framework   2. Install on the Server. 3. Login to the Plesk and go to "Tools & Settings" > "Server Components" and refresh the components using the refresh button 4. After update, it will reflect in "Web Script" section at the server component page. All done!!!

How to split column with delimiter into two columns in SQL Server Split

We can use Case and   CHARINDEX  to split column with delimiter into two columns in SQL Server select case when CHARINDEX ( '_' , name )> 0 then SUBSTRING ( name , 1 , CHARINDEX ( '_' , name ) -1 ) else name end firstname, CASE WHEN CHARINDEX ( '_' , name )> 0 THEN SUBSTRING ( name , CHARINDEX ( '_' , name )+ 1 , len ( name )) ELSE NULL END as lastname from emp you can use CASE command to control is last name available. MS SQL Server : Query 1 : declare @t table ( id int , name varchar ( 50 )) insert into @t ( id , name ) values ( 1 , 'abc_rao' ) insert into @t ( id , name ) values ( 2 , 'nani' ) insert into @t ( id , name ) values ( 3 , 'hari_babu' ) insert into @t ( id , name ) values ( 4 , 'kalibabu' ) insert into @t ( id , name ) values ( 5 , 'ab_tan' ) select case when CHARINDEX ( '_' ...

How to cancel your Zoom subscription or add-ons at anytime?

Cancel a Pro (paid) subscription Sign in to the Zoom web portal. Click Account Management, then click Billing. Under the Current Plans tab, find the plan you want to cancel and click Cancel Subscription to stop your subscription's automatic renewal. Confirm your request by selecting Cancel Subscription. Choose why you would no longer like to renew your subscription. Once complete, click Submit. Your plan status will now be updated to Canceled. You will still have use of your paid plan for the remainder of your subscription term. (Optional) If you would no longer like to have the plan canceled, you will be able to reactivate your plan by selecting Reactivate Plan on the Current Plans page. Note: If it says Contact Sales instead of Cancel Subscription, you will need to contact our sales team or your Account Executive to have the plan canceled

How to set up an HTTP/HTTPS redirect in IIS

In order to force a secure connection on our website, it is necessary to set up a certain HTTP/HTTPS redirection rule. This way, anyone who enters your site using a link like “domain.com” will be redirected to “https://domain.com” or “https://www.domain.com” (depending on your choice) making the traffic encrypted between the server and the client side. Steps to setup an IIS HTTPS redirect: Download and install the URL Rewrite module. Open the IIS Manager console and select the website you would like to apply the redirection to in the left-side menu: Double-click on the URL Rewrite icon. Click Add Rule(s) in the right-side menu. Select Blank Rule in the Inbound section, then press OK. Enter any rule name you wish. In the Match URL section: Select Matches the Pattern in the Requested URL drop-down menu Select Regular Expressions in the Using drop-down menu Enter the following pattern in the Match URL section: (.*) Check ...

Shopify - Add password protection to your online store

Add password protection to your online store You can add password protection to your online store. Steps: From your Shopify admin, go to  Online Store  >  Preferences . Scroll to the  Password protection  area, and check  Enable password . In  Password , enter the password that you'll give to the customers who you want to be able to access your online store. Don't use the same password that you use to log into your admin. In  Message for your visitors , enter the message that you want to show on the password page. If you don't want to show a message, then leave this field blank. Click  Save .   Edit your password page settings You can edit the content that shows on your password page, such as the text, colors, and typography.   From your Shopify admin, go to  Online Store  >  Themes . Find the theme that you want to edit and click  Customize . Select  Password page  from the to...