Best practices for setting lm-factor in Squid refresh patterns [closed] - squid

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am running a Squid (3.1) cache in front of Django. The content of the site does not change very often, so Squid gives our backend much needed breathing room.
Currently, this is the refresh pattern that we are using to cache the content:
refresh_pattern . 60 100% 60
We basically want to cache everything for at least an hour (and only an hour) before Squid then re-validates the content.
My question is on the "100%" parameter, which sets the lm-factor.
I'm not sure if setting that to 100% is doing what we want it to. The assumption was that by setting it to 100%, it would ensure that objects stay in the cache for the max cache time.
Is this an incorrect assumption?
What are the best practices that one should follow when setting up a refresh pattern like this?

Related

Can Gravatar slow down your website? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Initially I wanted to use the C# Identicon handler, but there is "parameter not valid " bug with it.
I'm curious if using Gravatar slows your site down much? Stackoverflow seems to use it fine.
I.E Does having a hold up the loading of your site, or is the image request just handled asynchronously in the background?
Has anyone had any other negatives effects from using Gravatar, like Google giving you a bad rating?
Thanks
Gravatar doesn't involve any significant server-side processing. The image URLs generated are just like any other, and might actually load faster than images on your own server (because they're from a different host and will load in parallel)
So no, it won't slow your site down in any unexpected way.
Edit: See this question regarding parallel requests on each hostname.

MVC3 Performance on a Large scale website [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I would like to know if anyone suggests developing a large scale website with ASP.Net MVC3.
By large scale i mean about 3000,000 requests per day.
That's not so much. We have a web site running on two servers handling about 8,000,000 requests each per day, and that doesn't even use 10% of the capacity.
So, yes, ASP.NET MVC certainly works for that scale of site.

Is there a better workflow than editing HTML/CSS in SublimeText2 and then F5/refresh in browser to view changes? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
At the moment, I have to alt-tab to browser after making changes in code, and press F5 to view changes in browser. Is there a way to refresh the browser automatically as changes are made ?
Firebug allows you to edit CSS live, though it is a bit buggy. Still, it can be useful for minor edits. It may even have more capabilities than that which I haven't discovered.

Web Application Rendering Methodology? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I have a Site Rendering Engine (well... ok, a CMS, with a bunch more...), that works extremely well. I am, however, starting to think that I can make it more efficient.
Right now, the entire application renders the website through one /Default.aspx file, which takes in the Routing values, and renders the correct page.
What I am wondering is if I can get rid of that one page, and use a HttpHandler or HttpModule instead, would it make that initial load more efficient or not?
Sure enough! It'll result in performance improvement. Basically in ASP.NET page life cycle, HTTPModule and HTTPHandlers are anyway called by IIS to determine the types/extn of your files and then it reached your Default.aspx. And from there you are redirecting. If you can directly route your requests from layers above Default.aspx it'll improve the application performance. By the way, here is a great sample I found, Hope you enjoying tweaking your code.
Eagerly waiting for your results... please do share

How do I find CSS usage for a complete site? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I've come in at the end of a big Drupal site build, and the resulting CSS files are... verbose and less than tidy, to say the least!
Are there any tools for checking the entire site to a) see if there are unused styles and b) how often styles are used (and thus assist in refactoring them).
I've had a look at the CSS Roundup Firefox Addon but this relies on manually clicking through all the pages and I want to make sure I don't delete any in-use styles.
Edit: found existing post on Stack Overflow entitled How can I find unused images and CSS styles in a website? and this What tool can analyze my site and report on unused / unneeded CSS?
csslint can help, though i can't say it'll do everything you want
http://csslint.net/

Resources