meta-tags

Using Javascript to override or disable meta refresh tag

[亡魂溺海] 提交于 2019-11-27 01:49:47
I have a website, where I am trying to use Ajax to update some stuff on the page without reloading it. However, there is a good chance that many of my users will be using mobile browsers that don't support Javascript so I am trying to design the page with meta refresh tags, that somehow work only for users without Javascript. Is there any way to do this? I tried putting the tag within a noscript element, but my primitive cell phone browser wouldn't acknowledge it. I am thinking of maybe setting a cookie to remember if the user's browser supports Javascript, or having one version of the page

html5 meta tag cache-control no longer valid?

会有一股神秘感。 提交于 2019-11-27 01:47:11
问题 How do I define <meta http-equiv="cache-control" content="no-cache" /> in HTML5? It is no longer valid according to the W3C Validator and the documentation. 回答1: Putting caching instructions into meta tags is not a good idea, because although browsers may read them, proxies won't. For that reason, they are invalid and you should send caching instructions as real HTTP headers. 回答2: There is no HTML solution. Mozilla's application cache (cache.manifest) is deprecated. The application cache site

How to stop chrome from caching

守給你的承諾、 提交于 2019-11-27 00:47:38
问题 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. 回答1: as per this bug report in chromium repo,

How to add meta tag to ASP.Net content page

喜夏-厌秋 提交于 2019-11-27 00:44:31
问题 I have several content pages hanging off of one master page. I need to add a refresh meta tag to one of the content pages but I can't see where I can do this. Any help would be much appreciated. 回答1: Have not tried this with refresh, but in general you can add a meta tag like this: var keywords = new HtmlMeta { Name = "keywords", Content = "one,two,three" }; Header.Controls.Add(keywords); update : it is possible this way. Check Rick Strahl http://www.west-wind.com/weblog/posts/2006/Aug/04/No

Media Queries firing at wrong width

こ雲淡風輕ζ 提交于 2019-11-27 00:25:51
问题 I am building a responsive page and the media queries are firing at the wrong width size. I am using Chrome. @media screen and (max-width: 1200px) { .logo-pic { display: none; } } For example, this rule works it just fires at wrong size. This rule fires at 1320px and not 1200px. I have the meta tag for html in place. It seems to be firing the media query 100 or so pixel wider than it normall should. <meta name="viewport" content="width=device-width, initial-scale=1"> I checked the previous

Changing meta-tags dynamic with jQuery

扶醉桌前 提交于 2019-11-27 00:03:39
问题 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

HTTP Meta Tags in SQL Server SSRS 2012 Web Pages

回眸只為那壹抹淺笑 提交于 2019-11-26 23:38:04
问题 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

HTTP header to detect a preload request by Google Chrome

ⅰ亾dé卋堺 提交于 2019-11-26 23:28:22
问题 Google Chrome 17 introduced a new feature which preloads a webpage to improve rendering speed upon actually making the request (hitting enter in the omnibar). Two questions: Is there a HTTP header to detect such a request on server side, and if one actually exists what is the proper response in order to prevent such preloading (to prevent unintended requests which might have unwanted effects)? Does Google Chrome check the robots.txt before making preload requests? Is there a robots.txt

HTA and 'x-ua-compatible' meta tag

故事扮演 提交于 2019-11-26 23:17:51
问题 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

Disabling android's chrome pull-down-to-refresh feature

时光怂恿深爱的人放手 提交于 2019-11-26 22:28:31
问题 I've created a small HTML5 web application for my company. This application displays a list of items and everything works fine. The application is mainly used on android phones and Chrome as browser. Also, the site is saved on the home screen so Android manage the whole thing as an app ( using a WebView I guess ). Chrome Beta (and I think also the Android System WebView) has introduced a "pull down to refresh" feature (See this link for example). This is an handy feature but I was wondering