Welcome to Idea R | Branding - Web Agency - Digital Strategies
Switch to the mobile layout

      Idea R - Do you have a real web strategy? Persuasion Technologies
  • HomeHome
  • About UsAbout Us
  • ContactsContacts

Blog

Take a software geek from the 80s, add a new generation graphic designer and dilute with a longtime marketing strategist. Shake vigorously and you'll get the Idea R's blog.

Change language... italiano

You may be interested in

How to fix your ASP.NET site to be responsive on Windows Phone

How to fix your ASP.NET site to be responsive on Windows Phone

Internet Explorer 10 for Windows Phone 8 suffers a bug when displaying responsive web sites. See how to fix it server-side with few lines of code.

How to include CSS files programmatically in ASP.NET

ASP.NET gives you the opportunity to add script blocks and JavaScript files at runtime. How to perform a similar action to include style sheets?

Last published

Case study: branding and marketing for a magician

Case study: branding and marketing for a magician

Singular case study in the world of illusionism. See how we have created a brand and a web marketing campaign with exceptional results.

Can engineering industry sponsor art without going off topic?

How to design a page in an exhibition catalog of Biennale in Venice, for a customer who apparently has nothing to do with art.

Most popular

Lazy loading and the SEO problem, solved!

Lazy loading and the SEO problem, solved!

The best SEO solution to index your dynamically loaded contents, no more compromises!

Case study: TAV Engineering, branding for B2B services

How to create a brand that keeps distance from the cold and aseptic image of the metal industry, focusing instead on the human aspect.

Editor's pick

Mental marketing secret #1: the fake compromise

Mental marketing secret #1: the fake compromise

Can mentalism influence marketing? As a marketing professional and a long term magician, I will reveal you some tricks.

How to dramatically increase social media LIKEs to your web site

Here's a free download that I created some time ago. It's a good tool for increasing engagement, but use with caution.
newsletter

Stay informed on digital strategies

My reviews on the subject...

I have many books on web design, the list is quite long, especially if I have to include all those which deal strictly to programming. I shall therefore refer you to some interesting texts. Don't Make Me Think! is the most famous book on usability, you can not miss it if you're involved in web design.

RSS feed

Problemi con la cache dei fogli di stile

Published on 10/23/2011
Categories: Web Design
Problemi con la cache dei fogli di stile

Microsoft IIS esegue un caching dei fogli stile collocati all'interno della cartella App_Themes, memorizzando quelli che sono utilizzati dalle pagine del sito (da tutte le pagine, non solo dalla pagina in questione); l'effetto si vede a occhi nudi guardando il codice HTML generato lato client e notando che sono incusi i link a file CSS che in realtà non sono stati specificati per la pagina in questione.
Questo comportamento, oltre a rendere necessaria una particolare attenzione all'ereditarietà degli stili, rischia di far sforare il numero massimo di tag di style concessi nelle versioni di Internet Explorer anteriori alla 8: in queste versioni infatti il numero massimo di tag di stile è 32 e tutti quelli successivi vengono ignorati.
Il consiglio è di usare la cartella App_Themes solo ed esclusivamente per i temi ed utilizzarne un'altra, ad esempio Styles, per i fogli di stile.

Come anticipato, nel caso fosse necessario usare la cartella App_Themes, bisogna stare attenti a non dare per scontato il valore di una proprietà, ma azzerarla sempre, ad esempio:

/* This is in a not included (but cached) style sheet */
.myStyle
{
    top: 10px;
}

/* This is in a included style sheet */
.myStyle
{
    bottom: 100px;
}

Il risultato sarà:

/* This is in a included style sheet */
.myStyle
{
    top: 10px;
    bottom: 100px;
}

Per evitare di ereditare dalla cache il valore top, il foglio di stile incluso dovrà essere fatto così:

/* This is in a included style sheet */
.myStyle
{
    top: auto;
    bottom: 100px;
}

You are the reader number 4,297.

Comments

comments powered by Disqus
Creative Commons License

Photographies, videos, graphics and texts by Idea R are licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.

Previous article

Previous article

JavaScript events? What a mess!

Next article

Painting with the light

Next article
  • Visual Communication, Art DirectionVisual Communication, Art Direction
  • Apps, Cloud, Mobile, Software DesignApps, Cloud, Mobile, Software Design
  • Digital StrategiesDigital Strategies
  • BlogBlog
Touching finger
RSS feed
Blog

Scroll to top