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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:04:05+00:00 2026-06-15T23:04:05+00:00

I made a html.c content type handler to set max-age=99999999. At first, it works.

  • 0

I made a html.c content type handler to set max-age=99999999.
At first, it works.
But when I amended it, saved it,
it didn’t reflect the change until the G-WAN server is restarted.
Is it the designed behavior?
Updated:
add the code as below:

#include "gwan.h" // G-WAN exported functions

#define CACHE "Expires: Fri, May 02 2042 00:00:00 GMT\r\nCache-Control: max-age=99999999\r\n"  

int main(int argc, char *argv[])
{
   http_header(HEAD_ADD, CACHE, sizeof(CACHE) - 1, argv);
   //http_header(HEAD_AFTER, CACHE, sizeof(CACHE) - 1, argv);
   return 200;
}

pls advise whether i have done something wrong.

  • 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-15T23:04:06+00:00Added an answer on June 15, 2026 at 11:04 pm

    This is the expected behavior.

    While servlets are reloaded on-the-fly, all handlers (connection handlers, content-type handlers, protocol handlers) are only reloaded once the program is stopped and restarted.

    We initially thought that handlers are less likely to be modified than servlets. That may be change in a future version.

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

Sidebar

Related Questions

I have made a html file, but when I upload and test it, I
I made a countdown timer and coded this in with HTML and CSS, but
<!DOCTYPE html> <html> <head> <title>Title</title> <meta http-equiv=content-type content=text/html; charset=utf-8> <style type=text/css> body { background:
I made a site with simple instructions let's say: <html> <head> <style type=text/css> .a120
I have a perl.cgi file which has the content: #!/usr/bin/perl print Content-type: text/html\n\n; print
I made a login/register page. It works fine on chrome and firefox, but doesnt
I made an HTML e-mail send with PHP, but my client receives this as
i made an HTML page with all widths and heights as percentage that's primary
I have made an html wizzard for making order. There are four steps, in
The html of this script is made with list items http://www.jeremymartin.name/projects.php?project=kwicks Where can I

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.