Questions tagged [http-equiv]

The 'http-equiv' attribute for the HTML 'meta' element makes the element a pragma directive that as the same effect as whatever HTTP header has the same name as the attribute’s value; e.g., Content-Type or Content-Security-Policy.

See https://html.spec.whatwg.org/multipage/semantics.html#pragma-directives

40 questions
3
votes
1 answer

Is an empty meta refresh tag ignored or equivalent to 0?

I am working on a site where every page has this tag in the head: The site's CMS has a meta refresh field you can set if needed, but it's not set, so this dummy refresh tag shows up on every page. Does the…
Jannette
  • 43
  • 4
3
votes
0 answers

mod_proxy_html and Apache 2.2.29: parse all and turn them in real http headers

I'm using Mamp 3 (pro) on Mac OS X Yosemite 10.10; I'v already compiled and installed mod_proxy_html (3.1.2) and mod_xml2enc, they are both correctly loaded by Apache 2.2.29 without issues. This is my typical html file:
G.S.
  • 51
  • 3
3
votes
1 answer

Are there HTML5 compliant alteratives to the http-equiv Cache-Control and Pragma directives?

I am updating the HTML of a site to be HMTL5 compliant. The existing site has the following two meta http-equiv elements: Cache-Control Pragma Are these two HTML5 compliant? If not, what should I replace these with in order to make my site HTML5…
2
votes
3 answers

Declaring character encodings in HTML

Should I declare charset like this: or like this: Or are both valid?
Menel
  • 147
  • 1
  • 9
2
votes
0 answers

auto download pdf file after multiple HTTP redirect

A/38/7/CORR.1(SUPP) I want to download all the pdf files in this page: [http://search.un.org/?query=A&searchTrigger=%E6%90%9C%E7%B4%A2+ODS&SS=DS&tpl=ods&lang=zh-cn] One sample link is : A/38/7/CORR.1(SUPP) . This link will redirect two times to the…
deepblue
  • 21
  • 3
1
vote
1 answer

http-equiv redirect to another html page

I am trying to redirect a user on my html page to another html page automatically after three seconds, and I am trying with this code: However, I get the error that it expected a "u" after ";"…
1
vote
0 answers

Getting the 'Content' Redirected URL from the Original URL in C#

Looking to get final redirect on case redirect is on content.
1
vote
0 answers

Avoid http-equiv tags

can be avoid and replace this by and what is the best replacement for My concern is to remove…
1
vote
1 answer

Why is delivery of Content-Security-Policy via headers "preferred"?

At 3. CSP Policy Delivery it says The Content-Security-Policy HTTP response header field is the preferred mechanism for delivering a policy But there are two valid mechanisms, delivery via an HTTP header, and delivery via a HTML meta…
1
vote
4 answers

X-Frame-Options is not working in meta tag?

I want to restrict my site content to be used in other domains through iframe control. The recommented meta tag i.e is not working. What can i do?
VR Patel
  • 51
  • 1
  • 1
  • 9
1
vote
0 answers

In Eclipse Rap 4.0, how to add meta http-equiv in head

I'm trying to allow mixed content from an iframe in an Eclipse Rap application. It should work using a http-equiv meta in an like this:
1
vote
0 answers

cURL and http-equiv="refresh"

thanks for help.. I'm using cURL for submit via POST a PHP file $curl = curl_init(); // Set some options - we are passing in a useragent too here curl_setopt_array($curl, array( CURLOPT_RETURNTRANSFER => 1, CURLOPT_URL =>…
Joe
  • 145
  • 1
  • 1
  • 11
1
vote
2 answers

What exactly does the http-equiv value 'Content-Security-Policy' do?

I'm creating a mobile application using Apache Cordova/Adobe Phonegap, and this code snippet was automatically generated. It's giving me this error in the Console inside Google Chrome. Refused to load the stylesheet …
CloudBranch
  • 643
  • 2
  • 10
  • 18
1
vote
0 answers

My WordPress site auto-redirects to another site

I have one site that is auto-redirecting to another site that I don't know. dreamangelfashion.com is my site, when I open it will redirect to http://queakshopgreet.com. I have looked at header and index files and I didn't find anything. When I…
Bhavik Hirani
  • 1,764
  • 4
  • 24
  • 38
1
vote
1 answer

Javascript equivalent of http-equiv redirect

What is the equivalent of these two meta tags: In JavaScript?
user6415946
1
2 3