meta-tags

Updating meta tags for SEO using angular universal

送分小仙女□ 提交于 2019-12-20 01:42:06
问题 I am building an angular universal + angular 2 website and i want to add the social media share button. I implemented the server side rendering and i also update the meta tags necessary using the following code : constructor(private dataService: DataService, private activatedRoute: ActivatedRoute, private auth: AuthService, private router : Router, private meta : Meta) { this.currentUrl = window.location.href; // testing if it changes something to add that outside of the service : it didnt

Google Chrome does not honor cache-policy in page header if the page is displayed in a FRAME

北城以北 提交于 2019-12-19 21:27:31
问题 No matter what I do: <meta http-equiv="Cache-Control" content="no-cache" /> <meta http-equiv="Expires" content="Fri, 30 Apr 2010 11:12:01 GMT" /> <meta http-equiv="Expires" content="0" /> <HTTP-EQUIV="PRAGMA" CONTENT="NO-STORE" /> Google Chrome does not reload any page according to the page's internal cache policy if the page is displayed in a frame . It is as though the meta tags are not even there. Google Chrome seems to be ignoring these tags. Since I've gotten answers to this question on

Smart App Banners; Windows Store app HTML meta tag equivalent for Android/Google Play?

我们两清 提交于 2019-12-18 21:49:29
问题 Smart App Banners are a recent addition for iOS devices in iOS 6. It involves the simple addition of a meta tag that when visited with Mobile Safari checks for the existence of an App on the phone and shows options for whether the visitor wants to launch or install the App. <meta name="apple-itunes-app" content="app-id=myAppId, affiliate-data=myAffiliateData, app-argument=myArgs" /> Windows Store app linking works similarly: <meta name="msApplication-ID" content="myAppId" /> <meta name=

Is it possible to use a different favicon for browsers that support theme-color?

流过昼夜 提交于 2019-12-18 19:06:15
问题 Is there a way to set a different favicon for browsers that support theme-color, either via the meta tag or manifest.json? I have a jet black theme bar, but a mostly-black favicon for use on desktop browsers. I'd like to have an alternate white favicon for mobile browsers, but I don't want to make the assumption that mobile browser === theme-color support, as that's not always going to be the case. Desktop favicon example: Mobile favicon example: 回答1: The browser's theme is accessible through

Video meta data using python

纵然是瞬间 提交于 2019-12-18 13:15:37
问题 Hi want to extract video meta tags using Python as described. On stackoverflow, I found kaa module which is not supported in Windows. Can anyone suggest me python library that can work on across the platforms? 回答1: Have you seen Hachoir? It 'extracts metadata from multimedia files'. The different file format parsers give differing levels of detail, but it might be what you are looking for. Here's an example of metatdata extraction from an AVI file: $ hachoir-metadata pacte_des_gnous.avi

Facebook scraper doesn't load dynamic meta-tags

只谈情不闲聊 提交于 2019-12-18 07:39:42
问题 I am creating the HTML meta-tags dynamically using the function below (GWT). It takes 1 second to have this on the DOM. It is working fine except for Facebook. When I share a link from my web, the scraper gets the meta-tags that are in the HTML: none. How can I fix this? /** * Include the HTML attributes: title, description and keywords (meta tags) */ private void createHTMLheader(MyClass thing) { String title=thing.getTitle(); String description=thing.getDescription(); Document.get()

How do desktop browsers handle mobile meta tags?

筅森魡賤 提交于 2019-12-18 04:39:20
问题 Specifically, would including <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/> in the header of a page that is served to both mobile and desktop browsers affect the layout when viewed in a desktop browser? 回答1: No. It will cause no problems with desktop browsers. 来源: https://stackoverflow.com/questions/7350225/how-do-desktop-browsers-handle-mobile-meta-tags

How to Redirect Page in PHP after a few seconds without meta http-equiv=REFRESH CONTENT=time

人走茶凉 提交于 2019-12-18 02:38:42
问题 It seems that it is not advisable to use <meta http-equiv=REFRESH CONTENT=3;url=url> for redirects but instead use header('Location: url') However, I would like to show the user some message and allow them some time to read it before redirecting. Is there a way to do it without meta? 回答1: Try use "refresh" header: header('Refresh: 3;url=page.php'); Also, you can look at this Question Refresh HTTP Header. 回答2: There is nothing wrong with using the meta refresh tag. <meta http-equiv="refresh"

How to Redirect Page in PHP after a few seconds without meta http-equiv=REFRESH CONTENT=time

天大地大妈咪最大 提交于 2019-12-18 02:38:21
问题 It seems that it is not advisable to use <meta http-equiv=REFRESH CONTENT=3;url=url> for redirects but instead use header('Location: url') However, I would like to show the user some message and allow them some time to read it before redirecting. Is there a way to do it without meta? 回答1: Try use "refresh" header: header('Refresh: 3;url=page.php'); Also, you can look at this Question Refresh HTTP Header. 回答2: There is nothing wrong with using the meta refresh tag. <meta http-equiv="refresh"

The desciption meta tag is not showing in a Google organic listing

大兔子大兔子 提交于 2019-12-17 21:19:09
问题 I have realised the desciption meta tag is not showing in a Google organic listing on a new site. Please see below the meta tags. I have always used these tags before without a problem. I have double checked the code and researched the correct syntax but can't see what is wrong. I also used a spider simulator at Webconfes and it saw the description tag. <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <base href="//www