http-headers


seo - How should an expired content be handled?

Google considers redirecting content that is no longer available to be "soft 404". They would like to be able to treat the page the same as a 404 page. If you redirect the expired page to your home... Read More


http headers - How to configure apache2 to just save certain POST requests without even passing them to application?

What do you mean by specific POST requests. Does your application have some kind of API. Are there parameters in the POST request which you can filter for? If so you may need to do this in your appli... Read More


PHP Include meta tags

The problem is you have a hidden character between the <head> and first <meta> element. Make sure all your pages and PHP files have the correct UTF-8 encoding (you can convert them in Notepad++ or Su... Read More


Does the order of headers in an HTTP response ever matter?

No, it does not matter for headers with different names. See RFC 2616, section 4.2: The order in which header fields with differing field names are received is not significant. However, it is "good... Read More


web development - When to use and not to use ETags

ETags are an alternative to (but can be used in combination with) "Last-Modified-Time" in order to determine cache validation. The client can send a pre-condition such as if-matches or if-none-matche... Read More


javascript - Browser privacy improvement implications for websites

I can't really answer the question of what information would be missed, though I will say from an analytics standpoint we do tend to care about the browser and OS our users are visiting with (to dete... Read More


seo - HTTP-header canonical and link tag canonical on same page?

Since Googlers mention this issue on one of their blog post: Specify no more than one rel=canonical for a page. When more than one is specified, all rel=canonicals will be ignored. 5 common mistake... Read More


html - What is "X-Content-Type-Options=nosniff"?

It prevents the browser from doing MIME-type sniffing. Most browsers are now respecting this header, including Chrome/Chromium, Edge, IE >= 8.0, Firefox >= 50 and Opera >= 13. See : https://blogs.msd... Read More


python - How can I get all the request headers in Django?

According to the documentation request.META is a "standard Python dictionary containing all available HTTP headers". If you want to get all the headers you can simply iterate through the dictionary.... Read More


htaccess - Font blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin'

Change your htaccess file code on your website root directory (i.e. Your public_html ".htaccess" file) <FilesMatch "\.(ttf|otf|eot|woff|woff2)$"> <IfModule mod_headers.c> Header set Acces... Read More