meta-tags

How to stop chrome from caching

陌路散爱 提交于 2019-11-28 04:52:32
I need to force the browser to reload the previous page from the server when the user presses the back button. I've added the following to my response headers: Cache-Control: no-cache, must-revalidate Expires: -1 This seems to work for most browsers but not for Google Chrome that insists on returning the cached results. So does anyone know how I force the browser to get the page from the server when the user presses the back button? Thank you. as per this bug report in chromium repo, users find that using no-store instead of no-cache will fix it in chrome. This is not proper, but perhaps you

How can I fix the webpage orientation to Portrait only for iPad and iPhone?

点点圈 提交于 2019-11-28 04:30:36
问题 I have developed a web app/website for the iPad but I can not get it stay in a fixed portrait view only. I do not want it to rotate and work in landscape mode, because of the way the app has been designed. I've tried various configurations of the viewport settings but that still has not worked. I'm not very good at JavaScript so a copy paste option would be best or something in CSS/HTML. Thanks in advance. 回答1: Unfortunately, there is no way to explicitly "lock" the orientation of a web-app

Changing meta-tags dynamic with jQuery

血红的双手。 提交于 2019-11-28 03:28:31
These are my meta-tags: <meta property="og:image" content="assets/css/gfx/skold.png"/> <meta property="og:title" content="Den historie hjemmesiden for Norges Golfforbund"/> <meta property="og:description" content="Her finner du alle de historie tingene som har skjedd i Norges golfhistorie gjennom tidene" /> <meta property="og:url" content="http://###"/> <meta property="og:site_name" content="Norges Golfklubb"/> <meta property="og:type" content="sport"/> And I am trying to change them dynamic with the following code: $("meta[property=og:title]").attr("content", result.title); But I am keep

Does & need to be & in the meta description?

你。 提交于 2019-11-28 02:59:20
问题 I'm inserting content which has the & sign. I would like to know if it's needed to insert it as & so this sign is read correctly. Like this: <meta name="description" content="lorem lorem S&B lorem lorem"> Or like this: <meta name="description" content="lorem lorem S&B lorem lorem"> 回答1: You always represent an ampersand in HTML content as & or & , never a bare & . This includes both text between an element's tags, as well as attribute values. No exceptions. This is because & itself denotes

valid xhtml meta tags for facebook open-graph and twitter cards

喜夏-厌秋 提交于 2019-11-28 02:25:58
to make valid: xhtml twitter cards facebook-graph-api for http://www.theyact.com/acting-classes/los-angeles/ I've managed to get my code to come up valid everywhere... save 1 error on http://validator.w3.org/ there is no attribute "property" but only 1 instance among the many in the code, only the below seems to ruffle the validator's feathers: <meta name="og:description" property="og:description" content="... I'd like the code to be completely valid in validator.w3.org's eyes. What am I missing? unor If you remove this element, the validator will complain about the next one containing the

Facebook Open Graph and Metatags

荒凉一梦 提交于 2019-11-28 02:16:21
问题 I have the following output at https://developers.facebook.com/tools/debug I added the locale metatag, because I had a lot of Extraneous Property errors. But that does not solve it. Extraneous Property: Objects of this type do not allow properties named og:latitude Extraneous Property: Objects of this type do not allow properties named og:longitude. Extraneous Property: Objects of this type do not allow properties named og:region. Extraneous Property: Objects of this type do not allow

HTTP Meta Tags in SQL Server SSRS 2012 Web Pages

流过昼夜 提交于 2019-11-28 02:08:34
We have SQL Server 2012 with SSRS installed on Windows Server 2008. There are some issues with reports not displaying correctly unless compatibility mode is enabled in IE 10. We also have a development server with the same setup but there the reports load fine because all pages rendered by the report server have the following meta tag: <META HTTP-EQUIV="X-UA-Compatible" CONTENT="IE=5"> Our production server does not have this and I am trying to add the same meta tag there but can't figure out how and the person who originally setup our dev server is no longer here. I tried looking at MSRS11

CodeIgniter: A Class/Library to help get meta tags from a web page?

混江龙づ霸主 提交于 2019-11-28 00:31:21
I am using codeigniter. I guess it doesn't matter which php framework I am using. But before I write my own class is there another that has already been written that allows a user to get the page title and meta tags (keywords, descriptions) of any sit...if they have any. Any sort of PHP class that does that would be great. Thanks all You should have a look at this class: PHP Simple HTML DOM it works this way: include('simple_html_dom.php'); $html = file_get_html('http://www.codeigniter.com/'); echo $html->find('title', 0)->innertext; // get <title> echo "<pre>"; foreach($html->find('meta') as

HTA and 'x-ua-compatible' meta tag

橙三吉。 提交于 2019-11-27 23:19:55
Added to post Jun-19-2014 Thanks Bond. Since you had IE9, I appreciate your test. Hopefully if somebody out there has IE 10 they will test it, too. It does not make any sense why under the IE 11 engine you can only run compatibility up to ie8. I created this tiny, itty-bitty HTA in order to post it so hopefully I can find out what I am missing. My system is a Win7 Pro 64bit with IE 11. When I set the meta tag as: <meta http-equiv="x-ua-compatible" content="ie=8"> the HTA runs peachy-keen. No problems. But when I change it to: <meta http-equiv="x-ua-compatible" content="ie=9"> it doesn't run so

Bad values in meta tags

自古美人都是妖i 提交于 2019-11-27 22:07:29
问题 I've got a problem when I pass the html5 validator to my site from w3c validator. The errors are next: Bad value Content-Script-Type for attribute http-equiv on element meta <meta http-equiv="Content-Script-Type" content="text/javascript" > Bad value expires for attribute http-equiv on element meta <meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT" > Bad value pragma for attribute http-equiv on element meta <meta http-equiv="pragma" content="no-cache" > Bad value Cache-Control