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 8434815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:45:40+00:00 2026-06-10T06:45:40+00:00

I have build a simple MVC library. There is a front controller. htaccess file

  • 0

I have build a simple MVC library. There is a front controller. htaccess file sends all requests to front controller except images, js, and css. But I have a problem which is I want to build JS and CSS files with PHP. (Not every time though some times.)

For this purpose, I am planning to send CSS and JS file requests to front controller, and from there, another PHP will “include” corresponding CSS or JS file, and return it back to client. When CSS or JS is included, it will be processed by PHP interpreter as well.

Though what makes me think is performance. I am only doing development at the moment, and I am not able to see how the system will respond this kind of technique when thousands of request comes. Since when you build a big system, it is hard to change immediately. So I want to build this features into MVC in early stages.

If anyone tried a technique like this, I would like to hear performance measurements.

  • 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-06-10T06:45:41+00:00Added an answer on June 10, 2026 at 6:45 am

    Performance in this case is a minor issue.

    What you have to understand is that, in production stage the CSS and JS files will be generate with far-future expire headers. Thus, each visitor will request this resource only once, and in every subsequent page-view use files from browser-cache.

    And, if generation process is complicated, you can always cache the current version of those resources, which would cut down the response time even more.

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

Sidebar

Related Questions

For a client I have build a simple script that uploads multiple files(images), resizes
Have a CI build set up in a very simple solution (MVC webapp, Service,
I'm going through the Spring MVC tutorial. I have a build.xml and build.properties file
I have a simple MVC solution with 2 projects, domain and web. There is
I have build a simple website with ASP.NET C#. It runs normally after I
I'm trying to build the simple layout that I have got in the image
I have a simple ticket logging application build on LAMP. I am currently playing
I have a simple Makefile: default: @make build @make run build: @javac Test.java >
I have a simple jQuery script that I'm trying to build upon but I
I have a very simple question. In FB tutorial https://developers.facebook.com/docs/mobile/ios/build/ it starts to login

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.