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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:58:51+00:00 2026-06-13T03:58:51+00:00

This question is not an implementation specific question of the grails plugin, but more

  • 0

This question is not an implementation specific question of the grails plugin, but more of a question illustrated using grails.

Grails a plugin for writing cache related headers (http://grails.org/plugin/cache-headers) and they show an example that looks like

class ContentController
   def show = {
       cache shared:true, validFor: 3600  // 1hr on content
       render(....)
   }
}

Since the grails request to get here would look something like http://myapp/content/show, would a browser even try to cache this since it’s not a specific resource with a filename (e.g. it’s not show.gsp, even though that is what is being used to generate the html)?

What’s the purpose of specifying a cache time on dynamic content that won’t be cached by the browser (assuming I’m understanding how the browser will cache it based on my statement above)? When might this be useful? Might this be useful in an ajax environment where the user is not typing the full url but rather we’re dynamically updating part of a page?

  • 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-13T03:58:52+00:00Added an answer on June 13, 2026 at 3:58 am

    Browser caches URL, not a filename (because HTTP is not a filesystem). I thinks it’s the answer for both questions, right?

    See:

    • http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13
    • http://www.mnot.net/cache_docs/
    • https://developers.google.com/speed/docs/best-practices/caching
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Greetings, It's a general SQL question not tied to any specific implementation but more
This is less of a specific problem or error but more of a implementation
This question is not technical, but is still about programming. What is the funniest,
This question might not seem very technical but, out of curiosity,I want to know
(This question does not rely on a specific IoC framework, so the interfaces and
[ Of course, the question is not restricted to a specific friend implementation, feel
This question is not Perl-specific, (although the unpack function will most probably figure into
I'm developing an android 3.1 application. This question is not specific for Android, it
I know the title of this question is not very descriptive, but I didn't
Maybe this question is very specific for me, but I'll give it a try.

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.