Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7697641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:03:52+00:00 2026-05-31T22:03:52+00:00

For sending HTML document information such as content-encoding , charset , date , last-modified

  • 0

For sending HTML document information such as content-encoding, charset, date, last-modified, etc we can equally use PHP header header() OR HTML meta http-equiv <meta http-equiv=... />. Which is practically better? Can anyone elaborate the pros and cons of both methods?

I wonder if each of them has a better performance for specific application (e.g. one is better for defining charset and the other for content-encoding?!?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T22:03:53+00:00Added an answer on May 31, 2026 at 10:03 pm

    Use real HTTP headers

    • HTTP headers take priority over <meta http-equiv
    • HTTP headers can be used by any HTTP client (instead of just those which parse HTML)
    • HTTP headers can be used by clients that make a HEAD request
    • Only a limited subset of HTTP headers are supported (by browsers) in <meta http-equiv

    There is an argument to be made for including the charset information via a meta element as well (since that will be preserved if the document is saved and the copy is then accessed from the filesystem instead of over HTTP).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can't seem to retrieve an ID I'm sending in a html.ActionLink in my
I am sending email through gmail, i want to send some html content, is
I have IE 7 + 8 and page which has <meta http-equiv=Content-Type content=text/html; charset=utf-8
I am sending out an email, and the message ($message) is in HTML I
I have an HTML form - with PHP, I am sending the data of
Is there a better way to generate HTML email in C# (for sending via
When sending data over HTTPS, I know the content is encrypted, however I hear
I have a HTML file and it has some information in spanish. I am
I am creating one html login form and sending requests to login.php file. Now
I am trying to sending XML content through POST to a controller ('Parse') method

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.