meta-tags

Force clear cache in OpenUI5

眉间皱痕 提交于 2019-12-22 00:14:27
问题 I have created an OpenUI5 app and I want to relase a new version daily. But I found some problems: Not always on the client browser is loaded the last version of javascript (I have a label that show the version and to see the last number is requred a manual refresh by F5) I have a JSon file that i use to bind a menu. If I modify it, on the client browser it remains in cache and also with F5 not load the new version. The solution is clear data of browser (...) Now I have this meta-tags on my

OpenGraph meta for facebook, linkedin and twitter

折月煮酒 提交于 2019-12-21 21:41:41
问题 I'm trying to make sure that when my website is shared the correct meta information is displayed. I thought I had it working but I'm experiencing a few issues on different social websites, as follows: Twitter pulls in the text but doesn't display the specified image. LinkedIn displays text but seems to use the wrong image so it's stretched. Facebook doesn't display anything. If I post the URL, that's all that's displayed as a hyperlink. Originally I just had the meta name="twitter: stuff but

Placing Facebook Metatags in Rails Application

天涯浪子 提交于 2019-12-21 19:48:15
问题 I have implemented Omniauth and Koala7 gems to integrate my application with Facebook. Everything works well, except one minor problem with posting custom actions with custom objects. The problem is that my object url should be the show page of a newly created post, such as /posts/1. To make this page recognized as a facebook object, I need to put facebook metatags on top of the show.html.erb like this: <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# sdff: http://ogp.me/ns/fb

Add meta tags to laravel page

两盒软妹~` 提交于 2019-12-21 09:35:43
问题 I'm trying to add description and keywords to my Laravel pages. Is this way working? Or there is something wrong? @section('title') {{trans('strings.About')}} @stop @section('description', 'Share text and photos with your friends and have fun') @section('keywords', 'sharing, sharing text, text, sharing photo, photo,') @section('robots', 'index, follow') @section('revisit-after', 'content="3 days') 回答1: Are you extending another template that uses all these sections ? They won't work on their

Can You Have Your OpenGraph Object Link to a Different URL?

半城伤御伤魂 提交于 2019-12-21 05:09:16
问题 So you need a public URL with meta tags to represent an object in the OpenGraph, and one of the required meta tags is a URL property. When the action gets published, it links to this URL property. Let's say I'm on http://mysite.com/A . It seems like I can't then do this: <meta property="og:url" content="http://mysite.com/B"></meta> Because Facebook will try to look at the root url for the meta tags. Is there any way to link to a different URL (mysite.com/B) from a given OpenGraph object URL

WordPress - How do I remove meta generator tags?

余生颓废 提交于 2019-12-20 11:49:45
问题 I have these tags: <meta name="generator" content="Woo Framework Version 3.1.1" /> <meta name="generator" content="WordPress 3.5" /> <meta name="generator" content="Canvas 3.0" /> I understand to remove the WordPress version tag I add: remove_action( 'wp_head', 'wp_generator' ); // goes into functions.php But how do I remove the themes meta tags? 回答1: If you are trying only to remove the meta="generator" add this line to your functions.php . remove_action( 'wp_head', 'wp_generator' ); 回答2:

HTML <head> best practices [closed]

喜欢而已 提交于 2019-12-20 08:41:18
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . There are <meta> tags and other things you can place in the <head> of your HTML document. What <meta> tags etc. and best practices do

getting meta tags info using curl and get_meta_tags()

时光总嘲笑我的痴心妄想 提交于 2019-12-20 06:33:54
问题 is there a way to use curl such that you can do something that is equivalent to the get_meta_tags() function in php? specifically to get the meta tags of an external site using curl in php with the least amount of overhead possible 回答1: is there a way to use curl such that you can do something that is equivalent to the get_meta_tags() function in php Nope, I don't think so. The best way would be to fetch the data, and parse it using a HTML parser. Alternatively, there are several regex based

IE Compatibility mode go to highest possible version

我只是一个虾纸丫 提交于 2019-12-20 05:19:05
问题 I have a problem with few users in our company as they don't have updated IE on Windows 7 to the highest version which also supports IE compatibility view EDGE. What I want to ask, how it is possible to fall back to the highest version user has installed ? I am thinking of <meta http-equiv="X-UA-Compatible" content="IE=edge,IE=8" /> Is it possible ? 回答1: "IE=edge" is how you tell Internet Explorer to use its highest version rather than any older version. Every version of IE that supports the

How to relax Content Security Policy with meta tag

梦想与她 提交于 2019-12-20 02:28:09
问题 I'm trying to override the Content Security Policy using a specific meta tag for some pages. I've been trying for a couple of hours, but I've not succeed yet. Is there a way to override CSP from the page itself (using JavaScript or meta tags) without having to modify the server configuration? Thank you. 回答1: No. For security reasons the meta tag can only make the policy more strict, not to relax the policy defined in the headers. If the meta tag could relax the policy, CSP would have no teeth