• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Remove Expires: Thu, 19 Nov 1981 PHP Header in Ubuntu Server

By Abhishek Ghosh January 7, 2015 8:06 pm Updated on January 7, 2015

Remove Expires: Thu, 19 Nov 1981 PHP Header in Ubuntu Server

Advertisement

PHP is bad but more bad and not corrected is a bad Header. Here to Remove Expires: Thu, 19 Nov 1981 PHP Header in Ubuntu Server running Apache or Nginx. Why Apache2 or Nginx, practically it will work for any web server software that can run PHP. This is not a problem of WP Super Cache or any PHP software developer. Credit (pun intended) is of PHP. It is tad hard to know what actually add this stuff. PHP is bad, if you want to read more.

 

Why Remove Expires: Thu, 19 Nov 1981 PHP Header in Ubuntu Server

 

To encourage caching, in short. This is 2015, may be you will read this in 3015, PHP will continue this thing. If Expire Header is in minus years, it simply means Caching is discouraged. It is birthday of the developer and responsible who compiled the PHP.ini. How much it deliver pain on Shared Hosting, it is very difficult to say. On our Setup, we need to Edit all the nodes manually. His father and mother had successful sexual reproduction and gave him birth on that day, thats why he added. He could add an X-Header : Parents-Sexually-Active.

That is his birthday. He has a worst PHP.net looking website and claims as Magento Expert. Very small person, telling the name has big problem – he has 2 followers on GitHub, 281 Known on LinkedIn. He will become popular. From WordPress Cache Plugin to a simple script, human get confused what to do. We are giving two options to remove Expires Thu, 19 Nov 1981 PHP Header in Ubuntu Server. Other Linux distro will have kind of same method. The moron’s work add more problem with HSTS and plain HTTPS and SSL.

Advertisement

---

Adding Internationally notable, honored person like Linus Trovalis or Richard M. Stallman was practical, if he had a moral. None in this World would complain if the date was 25th December, all zero. Any religion will honor Jesus Christ’s sayings, way of life. You will not find anything on his website – it says in excerpt, he is a big moron and you should hire him.

It has hundreds of variants as output depending on MIME type. Suppose, if ob_start('ob_gzhandler') is called after the line session_cache_limiter() it can overwrite cache control headers in any combination. This is reference of the function :

Vim
1
http://php.net/manual/en/function.session-cache-limiter.php

Head will get more hot, if you see the table’s header – “Possible values”. Possible values? Possible values because changing the setting might not work as defined.

 

Remove Expires: Thu, 19 Nov 1981 PHP Header in Apache2 Server (Shared Environment)

 

You have no control of PHP.ini in shared hosting. Now, how’ll change? This is a problem which can not explained unless you are a Linux Admin running 700 accounts on one IP. Do not blame the Linux Admin or Hosting. Change in PHP.ini can open up security issues. On dedicated instances, we can control many things. Thankfully you have .htaccess file. This is the actual place :

Vim
1
http://httpd.apache.org/docs/2.2/mod/mod_expires.html

It will go away if you add :

Vim
1
ExpiresActive Off

then force MIME type expires.

Remove Expires- Thu, 19 Nov 1981 PHP Header in Ubuntu Server

Very difficult problem, custom solution is needed for your problem.

 

Remove Expires: Thu, 19 Nov 1981 PHP Header Nginx, Apache, Whatever with root Access

 

Do not try to fix the library. Right method which we are describing – to edit PHP.ini file. SSH as root. To find the right PHP.ini, run this command :

Vim
1
php -i | grep 'Configuration File'

You will get output like :

Vim
1
2
Configuration File (php.ini) Path => /etc/php5/cli
Loaded Configuration File => /etc/php5/cli/php.ini

Editing the first will work fine, but Edit the CLI one too, depending on Need. If you want to list all the PHP related INI (if you running PHP-FPM fallback with HHVM, for example), run this :

Vim
1
locate php.ini

You will get output like this :

Vim
1
2
3
4
/etc/hhvm/php.ini
/etc/php5/cgi/php.ini
/etc/php5/cli/php.ini
/etc/php5/fpm/php.ini

Open the file with nano, we do not need vi for this small work, we are imbecile, our death of birth is not important, hence nano.

Hit ^ and W if it is a Mac and type this ==> cache_limiter and hit the Enter / Return key and you’ll find these :

Remove Expires- Thu, 19 Nov 1981 PHP Header

1 year = 31536000 seconds
1 year = 525600 minutes

You will edit :

Vim
1
2
3
4
5
session.cache_limiter = public, max-age=
 
; Document expires after n minutes.
; http://php.net/session.cache-expire
session.cache_expire = 180

Make it to :

Vim
1
2
session.cache_limiter = public, max-age = 525600
session.cache_expire = 525600

Restart the PHP services (PHP5-FPM or whatever) and Nginx or Apache2 or may be, you can reboot. HHVM is no good, they copy-pasted from PHP.net’s website :

Vim
1
http://docs.hhvm.com/manual/en/function.session-cache-limiter.php

But, you can override with value in /etc/hhvm/config.hdf. Do not try to edit any session.c like settings file. when a production server will die, you’ll understand why PHP is bad.

Tagged With 19 Nov 1981 , nginx expires 1981 , https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1833 L2atQFFulFyF9ylSdOBBOuyIPPQLYS_y8U-O-foRL9BMCcD0XNX-W45Rzmta-OsX 645d29957e0fe0dacb7a89082229c1291c494691&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme , https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1821 HI-lvSxMpiCjNsSYChfDl1ivYgIncJSzrDtUTZOBYgjPhqIBwAdLBvQ644GvhAlA 12361d76d4c92cbb0c33491a4af924dd63055e6e&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme , https://thecustomizewindows com/2015/01/remove-expires-thu-19-nov-1981-php-header-ubuntu-server/ , Expires: Thu 19 Nov 1981 08:52:00 GMT script , expires: thu 19 nov 1981 08:52:00 gmt , expires thu 19 nov 1981 08:52:00 gmt , Expires 19 Nov 1981 08:52:00 GMT , \=;expires=Thu

This Article Has Been Shared 302 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Remove Expires: Thu, 19 Nov 1981 PHP Header in Ubuntu Server

  • grep, cut Examples with unix pipe

    There are certain commonly used commands for managing Linux Servers. Here are some useful grep, cut examples with unix pipelining for SSH.

  • Select and Delete All Text of a File In SSH

    It is Quite Pathetic To Hold the Delete/Backspace Key of Any in Text Editor Like Nano or Vi in SSH Session. Here is a Practical Cheat Sheet.

  • Wildcard in Computing : What is this Wildcard ?

    Wildcard is a technical term used in computing which indicates a placeholder for other characters. This concept is often referred to as globbing.

  • Video Guide for Creating Ubuntu Live USB

    Video Guide for Creating Ubuntu Live USB shows how easily one can Create Bootable Ubunbu Live USB With UNetbootin For Mac or Windows.We have shown with Windows.

  • Installing WordPress on FreeBSD on Rackspace Cloud Server

    Installing Wordpress on FreeBSD on Rackspace Cloud Server is a bit different than on usual Linux distros, practically it is kind of installing on Mac OS X.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023
  • What is Vehicular Ad-Hoc Network? January 24, 2023
  • Difference Between Panel Light, COB Light, Track Light January 21, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Remove Expires: Thu, 19 Nov 1981 PHP Header in Ubuntu Server," in The Customize Windows, January 7, 2015, January 29, 2023, https://thecustomizewindows.com/2015/01/remove-expires-thu-19-nov-1981-php-header-ubuntu-server/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT