Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6330319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:50:58+00:00 2026-05-24T17:50:58+00:00

In my project CSS files can be pre-processed and then optionally minified (depending upon

  • 0

In my project CSS files can be pre-processed and then optionally minified (depending upon configuration).

Q1. Should multiple cache variations be generated for different combinations of CSS files?

res.php?stylesheets=test.css,test2.css,test3.css
res.php?stylesheets=test.css,test3.css

Q2. In the past I have noticed that such cache files were given some sort of GUID. How can I generate such an ID based upon the request?

res.php?stylesheets=test.css,test2.css,test3.css
  => cache/css/a3cadfeA33afADSFwwrzgnzzddsveraeAE
res.php?stylesheets=test.css,test3.css
  => cache/css/ergope4t5oiyk0sfb9x0fHkg04mm04tjzG

Please excuse the naivety of the above IDs!

Somehow I need to be able to regenerate the same ID from the stylesheets specified.

My question is only about caching of multiple variations and ID generation.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T17:50:58+00:00Added an answer on May 24, 2026 at 5:50 pm
    1. Yes, some pages will need different combinations of style sheets. Each combination must be cached individually. Unfortunately, the browser won’t know that there isn’t a difference between ?stylesheets=a.css,b.css and ?stylesheets=b.css,a.css so both will need to be cached.

    2. That’s used to make sure the browser doesn’t accidentally cache the dynamically generated stylesheet. It’s unnecessary if you are using a decent minifier. Usually, the GUID is found by hashing the last-modified times of each file in the list. Like I said, most minifiers will automatically check for new versions of files and discard the old cached version.

    I would suggest PHP Minify. Installation is as easy as copying the folder into your doc root. It also supports JavaScript compression with the Google Closure Compiler.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can i add multiple css files in rails project ? I do, <%=
I have a project with several CSS files, each with many different settings. Every
I want to load some .css files to my Django project but I don't
We have a project where the .js and .css files gets compressed with YUI
How can I include specific JS or CSS files (by convention ?) with Ruby
I'm creating a website/codeigniter-project that uses views which link to external CSS files. Everywhere
I want to format my css files used in my web project. Formatting means:
I've just found out that php can be added to css files by adding
I'm trying to parse some css files using a code project parser found here
My project has collected CSS entropy (unused classes) during its course of development. Now

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.