MVC's And Firefox's Cache Work?
Aug 3, 2010
I use the following code to write cache header on *.png requests:
response.Buffer = false;
response.BufferOutput = false;
// Emit content type and encoding based on the file extension and
// whether the response is compressed
response.ContentType = MimeMapping.GetMimeMapping(physicalFilePath);
if (mode != ResponseCompressionType.None)
response.AppendHeader("Content-Encoding", mode.ToString().ToLower());
response.AppendHeader("Content-Length", count.ToString());
// Emit proper cache headers that will cache the response in browser's
// cache for the default cache duration
response.Cache.SetCacheability(HttpCacheability.Public);
response.Cache.AppendCacheExtension("must-revalidate, proxy-revalidate");
response.Cache.SetMaxAge(DEFAULT_CACHE_DURATION);
response.Cache.SetExpires(DateTime.Now.Add(DEFAULT_CACHE_DURATION));
response.Cache.SetLastModified(lastModified);
But every time I refresh the page which contains the PNG URL, it will post to web server again. It seems that the cache header not work, and worse, it make the browser cache not work too. I am using asp.net mvc.
View 2 Replies
Similar Messages:
Aug 19, 2010
I am working on a asp.net web site, like normal user, we use asp.net developer server during coding and testing.Today, I found the firefox not cache any static file of my site, since our application is pretty big, it made page load time very slow.I checked firefox about:cache, all the static file cache setting looks like
Key: http://localhost:26851/App_Layout/icons/actions/email/folder.png
Data size: 871 bytes
Fetch count: 1[code]...
The expires date is set back to 1969-12-31, I believe that's the reason why they are loaded very time.I am using Visual studio 2008, windows 7 machine. The application works fine in IE, the contents are properly cached.
View 5 Replies
Mar 29, 2011
I am trying to implement a feature for my web site for library access. Normally users access the site with http://www.famnet.net.nz. This => a welcome/logon page, you may decide to register, etc etc. I programmed access from http://www.famnet.net.nz/library.aspx?userid=testlibrary. This URL (or one like it) is intended to be a link on a web page within a library: clicking the link opens the site with the user already logged on as "testlibrary", with some differences in function compared with an individual logon. This all works perfectly in my testing, using Firefox. However it does not work with IE7. I programmed diagnostic statements that should appear from all paths: but these don't appear with IE7 (but they do with Firefox).
View 5 Replies
Oct 15, 2010
I have ASP.Net application with a simple cache helper. Under VS web server it works fine. Under IIS 6.0 cache doesn't work- object, was saved previos, doesn't returns after a minute (with no exception).
[Code]....
View 1 Replies
Sep 27, 2010
I'm using ckeditor in my page and it's work fine, except when I'm sending email. The mailbody is empty in FireFox, in IE it works fine. What can it be? Here is my code
[Code]....
View 3 Replies
Dec 2, 2010
I am clicking one linkbutton to check the validators clientside in the panels. This works well in IE, but not in Firefox. When I click the button, it does not even hit the validateLength function
[Code]....
View 1 Replies
Dec 7, 2010
I have had an issue with someone who can't see the font colors of the labels on their screen, they are always black. he is using firefox on a MAC, chrome on mac works fine, but the firefox doesn't. Is this a known issue? Is there a fix for it?
View 6 Replies
Feb 16, 2011
after I click the asp:button, mozilla firefox 3.6 never response my request. What should I do?I'm using vb.net to proceed.
View 7 Replies
Dec 21, 2010
i've log-in page in my site but log-in control doesn't work on any browser other than IE.
View 1 Replies
Jan 22, 2010
I've got a problem with my title displaying with the default template. It gets cutoff in firefox and IE 8 (in standards mode) by the content div.
View 1 Replies
Mar 18, 2011
IIS7, WINDOWS WEB SERVER 2008, ASP.NET 4.0 Does the output cache work when using webgarden?
View 1 Replies
Feb 4, 2011
I have a very simple Skin with the following:
[Code]....
And in my css I have the following:
[Code]....
The Basic Button CSS works in both browsers but my .BsicInput:focus CSS works only in Firefox. Any ideas about what is wrong?
View 3 Replies
Feb 8, 2011
here is the functionality which works in IE browser but not on firefox and chrome. I'm using
ModalPopUpExender.
View 2 Replies
Feb 24, 2011
I'm using ASP Menu .... It Works fine in IE ...but The Problem in Fire fox ... i put the asp menu inside Table Cell and I give Alignment Property for that cell to be right .....the Alignment for Childs in IE is Right Correct but in FireFox is Left :-( so how can I change the alignment for Childs to be Right and to work in Firefox
The ASP Menu Code in ASPX is :
[Code]....
View 2 Replies
Mar 1, 2011
It works in IE. I guess it could depends on that Firefox does not read I have a gridview showing images from a unc path like:
<asp:imagefield dataimageurlfield="Imageid"
dataimageurlformatstring="\ymerilderkomp_{0}.jpg" [code]...
Firefox is showing the alternativ text.
View 2 Replies
Feb 11, 2010
I developed a activex control, it can work well in IE, but not in firefox , is it possible for my activex control to work in FireFox and Google Chrome?
View 1 Replies
May 9, 2010
I was trying to prototype some jQuery-based menu into ASP.NET MVC. Just to name two examples here: [URL]Their demo page looks great, but when I integrate their sample code into MVC, the script no longer works in IE and FireFox, but it seems to work just fine under Google Chrome. Can someone kindly enough to point out what I missed? I will be honest here. I am still new to JavaScript. I have placed a copy of my VS2010 solution zip file @ [URL] Here is what I did. In the Site.Master, I have something like
<body>
<div class="page">{truncated...}</div>
<script src=[URL]" charset="utf-8"></script>
<asp:ContentPlaceHolder ID="ScriptContent" runat="server" />
</body>
And inside View file, I have the following
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div id="original">
{some demo block, copied from javascript demo}
</div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
<script type="text/javascript" src="<%= Url.Content("~/Scripts/jquery.columnview.js") %>" />
<script type="text/javascript">
$(document).ready(function () {
$('#original').columnview();
});
</script>
</asp:Content>
Compiled the code and ran it under IE. Ideally, it should work like the demo in [URL], but in reality, it only displays unordered list in plain view. (If you download the solution file and run it, you should be able to repro this as well). Next, tried with FireFox, not working either, same result as IE. Finally, when I try it under Google Chrome 4.1 (lastest version), and the script displays just fine.
View 2 Replies
Apr 7, 2010
I have a panel that is displayed in ajax popup. The panel has a div inside it. Overflow property for div is set to 'scroll'.
My problem is that when the page is displayed in firefox, scrollbar do not work. Scrollbars are displayed properly but nothing happens when I click on the scroll button or even on scroll bar.
Note: Page works great in IE. Also note that I was able to scroll using the scroll button of mouse in firefox.
see code from aspx file below.
[Code]....
View 3 Replies
Mar 22, 2011
I am having issue with cache-control. I have one IIS website with multiple host headers. When you browse site number 1 then cache will be set for this site, when you open browser again and go to 2nd site you will see content from first site. How can I determine cache content based on the site user visits? Everything working fine when you have 1 site and host header related to SAME site.
//Set Cacheability
if (!Context.User.Identity.IsAuthenticated && _activeNode.CacheDuration > 0)
{
var eTag = GetETag(_activeNode);
HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.Public);
[Code]....
View 1 Replies
Oct 27, 2010
I am not sure if I am posting this on the appropriate forum but I will give a try.
I have the following code:
[Code]....
[Code]....
[Code]....
View 6 Replies
Feb 14, 2010
I have the following controller:
using System;
using System.Collections.Generic;
using System.Linq; [code]....
When I click the action link in IE the controller code runs but the div is NOT updated. Do it in ANY other browser and it works just fine. Is this (yet another) known problem/bug with IE??
View 2 Replies
Jul 18, 2010
i write a page method and some sort of javascript to work with that method, everything fine in any browser but firefox!
[Code]....
<input id="offcheckcid" type="button" value="بررسی کلوب آی دی" onclick="CheckCloobID('offline');" style="color: Black;"/>
function CheckCloobID(sender) {
var id;
var email;
var button;
id = $get("ctl00_ctl00_cph1_cph1_offcid");
email = $get("ctl00_ctl00_cph1_cph1_offcpe");
button = $get("offcheckcid");
button.value = "کمی تامل نمائید...";
button.disabled = true;
id.disabled = true;
email.disabled = true;
PageMethods.CheckCloobID(id.value, email.value, 'offline', OnSuccess, OnTimeout, OnFailure);
}
function OnSuccess(result) {
var results = result.split("#", 2);
if (results[0] == "Accepted") {
var price = $get("offcut");
price.innerText = "30,000- ریال";
var total = $get("offtotal");
total.innerText = "570,000 ریال";
var button = $get("offcheckcid");
button.value = "تائید شد";
}
else {
alert("...کلوب آی دی و ایمیل محرمانه وارد شده وجود ندارد یا قبلا تخفیف گرفته است");
ActivateButtons();
}
}
the problem: onsuccess event did not work in firefox, no error message displayed in firebug...
View 1 Replies
Oct 20, 2010
I am using update panels with Update mode conditional in by aspx page. The page is functioning properlly in the IE.8.0 but the page content is not posting when i open it in the Google Chrome or Mozilla Firefox.
FYI I am using Update panels for drop down lists and buttons and in the triggers also i am using similar controls.
View 6 Replies
Jan 26, 2011
Does anyone now how I can make the drag/drop functionality of WebParts work in Firefox?
View 3 Replies
Oct 14, 2010
the below works in Internet Explorer but not firefox.
protected void Page_Load(object sender, EventArgs e)
this.GridView1.Attributes.Add("bordercolor", "c3cecc");
View 2 Replies