http-caching

Fiddler showing cache hits?

自闭症网瘾萝莉.ら 提交于 2019-12-06 10:42:54
问题 I just wanted to check if my HTTP caching for my website is working especially since I moved to a CDN. Now I used both Fiddler and Firebug and what I am seeing is that requests for ALL scripts and images on my page every time I navigate to it. Response code is 200. If I open the page in Chrome, the developer tools also show me all these requests but Chrome also tells me that the requests are served from the Cache. Chrome requests are not listed in Fiddler (while FF and IE requests are). My

In Weblogic 10.3.5, is there any way to expire an html file from cache without going through a server restart

若如初见. 提交于 2019-12-06 08:50:45
In Weblogic 10.3.5, is there any way to expire an html file from cache without going through a server restart. I am supporting a server with frequent HTML changes and hoping to find a way not to restart the server each time the HTML is updated. Environment is supporting a PeopleSoft domain. Thanks. There's a way indeed, the parameter "Resource Reload Check (in seconds)" which can be found on a web app setup is what you're looking for. I've setup this to 5(secondes) in order to have a periodic refresh on dynamic ressources generated by an application engine (an xml parsed by an xslt) For some

How to cache api response using curl, based on returned etag?

孤街浪徒 提交于 2019-12-06 05:47:10
This is a quick question that might help other too. I have a rest service that will return a proper ETAG header for each GET query on it's endpoints. Now, i also need to create a curl http client to query these endpoints and make use of the etags. From my understanding, after making the first request with curl, i need to save the returned etag for later use, so that on all subsequent requests (till the etag invalidates on server) i use the cached version because the server will return a 304 header and an empty response. Is this correct? Having in mind that this http client will be distributed

How do I implement client side http caching like a browser?

天大地大妈咪最大 提交于 2019-12-06 04:32:24
问题 I use a RESTFul service as a backend to my frontend. The service sets expires/etag/lastmodified headers on it's responses. What I'm looking for is a client-side(favorably java) library which can fetch data from the service and cache it in a pluggable caching backend like ehcache. What I also want to be able to do is automatically prime the cache using background worker threads as soon as an entry is invalidated. Also, it should be smart to do conditional GETs. I've come across http://hc

Edge Side Includes and validation cache in Symfony 2

拟墨画扇 提交于 2019-12-06 03:17:27
问题 Is it possible to use validation cache in an ESI with Symfony 2 ? If you look the HttpFoundation Response class, you can see how isNotModified works: /** * Determines if the Response validators (ETag, Last-Modified) match * a conditional value specified in the Request. * * If the Response is not modified, it sets the status code to 304 and * removes the actual content by calling the setNotModified() method. * * @param Request $request A Request instance * * @return Boolean true if the

Why aren't my images caching?

[亡魂溺海] 提交于 2019-12-05 18:50:07
I have an ASP.NET MVC3 application setup. There is a controller that returns back images and I have added the following: [OutputCache(Duration = 3600, VaryByParam = "id;width", Order = 1000, Location = OutputCacheLocation.Client)] public ActionResult Get(string id, int width) { ... } But when I check out the HTTP Response on these images they all have headers that say "cache-control: no-cache" and "expires: -1" which means the browser is never caching them. I'm looking all around and I can't find anything on why the response is telling the browser not to cache them. I even tried working up my

Does “Empty Cache and Hard Reload” empty the entire cache or just parts relevant to the current site?

*爱你&永不变心* 提交于 2019-12-05 01:35:15
Does "Empty Cache and Hard Reload" in Chromium/Chrome empty the entire cache or just parts relevant to the current site? My inkling is that it empties absolutely all cached resources (as suggested in the comment to this answer ). However, a definitive answer would be helpful. Chris Barker It empties the entire cache. You can verify this with these steps: Browse through a few sites ( reddit , stack overflow , ...) Enter chrome://cache into the omnibox Save the list of files Go to a basic website with no external resources like example.com Open the developer console, right click on Refresh, and

How do I set Expires: header when using send_data

给你一囗甜甜゛ 提交于 2019-12-04 18:35:21
问题 I have a method in my controller which uses send_data like this: def show expires_in 10.hours, :public => true send_data my_image_generator, :filename => "image.gif", :type => "image/gif" end Using expires_in results in headers being sent like this: HTTP/1.1 200 OK Connection: close Date: Fri, 25 Jun 2010 10:41:22 GMT ETag: "885d75258e9306c46a5dbfe3de44e581" Content-Transfer-Encoding: binary X-Runtime: 143 Content-Type: image/gif Content-Disposition: inline; filename="image.gif" Content

Fiddler showing cache hits?

旧街凉风 提交于 2019-12-04 17:26:15
I just wanted to check if my HTTP caching for my website is working especially since I moved to a CDN. Now I used both Fiddler and Firebug and what I am seeing is that requests for ALL scripts and images on my page every time I navigate to it. Response code is 200. If I open the page in Chrome, the developer tools also show me all these requests but Chrome also tells me that the requests are served from the Cache. Chrome requests are not listed in Fiddler (while FF and IE requests are). My original assumption was that if Firefox or Internet Explorer get a file from their cache that request

How do I implement client side http caching like a browser?

牧云@^-^@ 提交于 2019-12-04 09:54:23
I use a RESTFul service as a backend to my frontend. The service sets expires/etag/lastmodified headers on it's responses. What I'm looking for is a client-side(favorably java) library which can fetch data from the service and cache it in a pluggable caching backend like ehcache. What I also want to be able to do is automatically prime the cache using background worker threads as soon as an entry is invalidated. Also, it should be smart to do conditional GETs. I've come across http://hc.apache.org/httpcomponents-client-ga/tutorial/html/caching.html Is there any other library anyone knows about