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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:46:50+00:00 2026-05-30T05:46:50+00:00

Looking at the image below, you can see that there are lots of javascript

  • 0

Looking at the image below, you can see that there are lots of javascript and css in my application.
javascripts and css in my app
;

Is there a way in ZEND framework that I can cache all of these so that the page will not load all these stylesheets and scripts?

  • 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-30T05:46:51+00:00Added an answer on May 30, 2026 at 5:46 am

    The issue is not really not a Zend Framework issue. It’s about directing the client (a web browser, in all likelihood) to cache the content on its side so that the next time it needs it, it doesn’t have to request it and the server doesn’t have to deliver it.

    This is typically accomplished by sending cache headers from the server to the client. The precise headers you need to send depend upon how long you want the browser to cache. A Google search will show you those.

    In a “standard” Zend Framework application, these external javascript and css resources are inside the public folder of your application and are served directly by your web server. Zend Framework never even touches them. As a result, the method for sending those cache headers will not depend upon Zend Framework, but rather your web server.

    As an example, in Apache, if you have the mod_expires module, Apache itself can be instructed to send the correct cache headers. Add something like this to the .htaccess in public/assets directory:

    ExpiresDefault "access plus 1 month"
    

    See the mod_expires documentation for more info.

    Of course, when you update any of the content in that public/assets directory, you will want all clients to request the new content, not re-use the cached content. Changing the url of the requested resource by appending a query string – something like changing from http://example.com/assets/js/myscript.js to http://example.com/assets/js/myscript.js?v=20120223 – will force a new load.

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

Sidebar

Related Questions

I'm looking for an algorithm that rotates an image by some degrees (input). public
I am looking for the best way to detect an image within another image.
I am looking for a control which can show me selected image detail view
I am looking for a way to quickly determine if a PNG image has
I'm looking for an easy way for the user to see how many drinks
I am looking to develop a web-app that displays an image to the user
I have developed an image uploading application that uses Flash to load an image,
The image below shows a input component from Facebook that helps in building a
I am looking for a method that looks for shapes in 3D image in
Just looking for a good PHP Image Library, I want to display images with

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.