When Chrome loads my website, it checks the server for updated versions of files before it shows them. (Images/Javascript/CSS) It gets a 304 from the server because I never edit external javascript, css or images.
What I want it to do, is display the images without even checking the server.
Here are the headers:
Connection:keep-alive ...
Programmatically how do i add expire header? I am not using IIS, i'd like to do this in ASP.NET itself or maybe how to do it with apache which is what i am using.
...
I've got a Silverlight app that talks to a REST web service using the WebClient class. It runs fine in IE 8 and Chrome 5, but the web service call fails in Firefox 3.
I've narrowed down the problem: Firefox 3 is changing the Accept header of my HTTP request. here's my simplified code:
// Use the ClientHttp stack.
WebRequest.RegisterPr...
My current application I am working on has following line at response fields:
Server: Microsoft-IIS/6.0
I feel embarrassed. I am thinking about writing http module to cloak this field. However am I little afraid that browsers use this value, in order to achieve maximum performance, to alter some aspects of http implementation. So what...
I have a JSP file which creates an Excel document.
I want to dynamically set the name of the file to be downloaded.
This is how I set the file name to "test.xsl":
<% response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-Disposition","attachment; filename=" + "test.xsl" );
%>
How can I set the file nam...
Each page in an MVC application I'm working with sets these HTTP headers in requests:
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
X-AspNetMvc-Version: 2.0
How do I prevent these from showing?
...
We make changes often on our website (which uses caching) and sometimes user don't know to refresh a page in order to get the newest copy of it.
If we do update a page, how can we force the users browser to know that there is a new server version, and to use that rather than their browsers cached page?
...
I have created an API that is used on several sites. The client sites call the server with either file_get_contents or curl and accesses a url of ours like "http://www.myserver.com/api/record.php?some=thing". The client makes the call and then waits for the API to respond before processing the rest of the page. However, some of the time ...
I'm using PHP's cURL function to read profiles from steampowered.com. The data retrieved is XML, and only the first roughly 1000 bytes are needed.
The method I'm using is to add a Range header, which I read on a Stack Overflow answer (curl: How to limit size of GET?). Another method I tried was using the curlopt_range but that didn't wo...
I'm serving some files locally via HTTP using QTcpSocket. My problem is that only wget downloads the file properly, firefox adds four extra bytes to the end. This is the header I send:
HTTP/1.0 200 Ok
Content-Length: 382917;
Content-Type: application/x-shockwave-flash;
Content-Disposition: attachment; filename=file.swf;
This i...
If a person clears their cookies and changes their IP address, is there ANY way for a website to identify that computer as a computer that has "been here before"? In other words, no identifiable information like MAC can ever be known over HTTP, right? (I've looked through the list of headers and only see cookies and user-agent).
Also ...
I'm writing a mobile application and I'm having difficulty downloading lengthy files from a Yahoo! server that periodically (about every three minutes) aborts the download. The mobile application successfully downloads lengthy files from other servers via the same slow data connection. A dump of the HTTP header from the Yahoo! server i...
Hello,
after several months having the site disappear from search results in every major search engine, I finally found out a possible reason.
I used WebBug to investigate server header. See the difference if the request is HEAD or GET.
HEAD Sent data:
HEAD / HTTP/1.1
Host: www.attu.it
Connection: close
Accept: */*
User-Agent: WebBug/...
I have this PHP file:
<?php
header('Content-type: text/xml; charset=UTF-8');
?><?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="hello world example" />
<Content type="html">
<![CDATA[
Hello, world!
]]>
</Content>
</Module>
I would expect it to return a Content-type:text/xml header.
What i...
In the web app (C#, ASP.NET) I am working on at the moment, the value in Request.Headers["Referer"] can determine things like custom style. I have created a custom page with a drop down menu to test this functionality. So when the selected index changes, the value selected should be set in the Request.Headers["Referer"] then will be redi...
Hi, everyone,
I want to ask some basic knowledge of server.
1) What is the different between the web server and the CalDav server?
2) How to set the web server and CalDav server?
3) If I send a request to CalDav server ( I assume that I have the URL of the server), will the response header contains the data within the CalDav server...
Hi,
I have a webservice to download files. With every incoming request, i check for the checksum and timestamp of the file requested to be downloaded, and the file on the server. In case they are same, i dont have to download it again.
The code on server side is:
string checksum; //calculate this using methods in System.Security.Cryp...
Hi guys,
So I am having this problem wit my download link. Basically my previous way of creating download link is to just have a form button with method='link' and the action to be the link to the file. This works for firefox and others but not safari. For some reason, when the user tries to download the file (excel file) from safari, ...
header('Location: '. $url, TRUE, $http_response_code);
Sometimes the above takes several seconds, is it possible to speed it up?
...
To fix issues with Safari frequently hanging when uploading files, I need to make a request to my Rails server and have it return an empty body with a "Connection: close" header. More details about this fix can be found here.
So far, I have tried:
def close
return head :ok, {'Connection' => 'close'}
end
def close
response.headers[...