Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Oh god, how did this get here i am not

Name: Anonymous 2009-02-17 19:58

I run a site and its main css file's pretty huge.
Looking through my server logs its being accessed the majority of times a page is reloaded.
Isn't this supposed to be stored in temporary internet history so it doesn't have to be reloaded?
Can I store it on the users computer so they only ever have to download it once?
Help me /prog/.

Name: sageman 2009-02-17 20:32


ExpiresActive On
<Files "*.css">
    ExpiresDefault A29030400
    Header append Cache-Control "public"
</Files>

Name: Anonymous 2009-02-18 0:22

>>2

HAHAHA nice try troll. 6/10

Seriously though...

The way modern browser like FireFox work, they need to download the CSS file each time the page is loaded to do standards compliant rendering.

Once would think a webmaster like yourself would know this basic thing.

Name: Anonymous 2009-02-18 1:23

Store it in cookies

Name: Anonymous 2009-02-18 1:28

Put it in cookies.jar

Name: Anonymous 2009-02-18 5:50

use pure html

Name: Anonymous 2009-02-18 5:54

store in cookies... strange idea...

if you use JS to load it, the page will be without at start, if you use php to load it, the client will need to redownload it each time.

Name: Anonymous 2009-02-18 6:31

One word, 304 Not Modified, thread over

Name: Anonymous 2009-02-18 13:14

>css
Stopped reading.

Name: Anonymous 2009-02-18 13:17

css
Stopped rendering.

Name: Anonymous 2009-02-18 14:29

> > > > css

Stopped leading.

Name: Anonymous 2009-02-18 16:35










XSL-FO

I enterprise'd.

Name: Anonymous 2009-02-18 20:04

How big is your CSS, are you like me who thinks like more than 10 lines of inline CSS is big?

Name: Anonymous 2009-02-18 20:35

Use PHP / ASP / whatever shit you are running to set these headers for requests to the CSS file:

Last-Modified: Mon, 16 Dec 2002 16:52:50 GMT
Expires: Tue, 17 Dec 2002 16:52:50 GMT
cache-Control: max-age=86400

Dates should be adjusted of course,
Last-Modified: Last modified time for file
Expires: A day from now should be plenty.
cache-Control: max-age=some number of seconds.

Name: Trollbot9000 2009-07-01 9:13


like this would almost certainly cause memory  leaks Just a  regular function that  takes two arguments  and returns the  bigger of the  blur functions you  might as well  be echo df.

Name: Anonymous 2010-11-27 13:56

Name: Anonymous 2010-11-28 7:14

Name: Anonymous 2010-12-06 9:04

Back to /b/, ``GNAA Faggot''

Name: Anonymous 2011-02-04 18:37

Name: Anonymous 2011-02-18 13:17

dubz

Name: Anonymous 2011-09-08 4:36

sagesagesagesagemoressg

Name: Anonymous 2014-01-21 20:50

>>23
>le pedophile sage

Don't change these.
Name: Email:
Entire Thread Thread List